How to set JAVA_HOME during deployment



  • Ken Staude

    My guess is that because JAVA_Home is an environmental variable, the account your using to deploy the script may not be able to see this Environmental Variable (no user profile / env. var created for the deployment user).

    I'd suggest reading an article like these: 

    I suppose it might be program installation dependent of how the installation is called but would think that you might just have to get/set the environmental variable within your batch file during the install command.

    Comment actions Permalink
  • Douglas Miller

    I actually do have setting JAVA_HOME inside the batch already.  That's why it works when I run it manually.  I also just proved that JAVA_HOME isn't the problem as I originally thought.  It is being set.  What's weird is the installation is failing in the same way it would if it doesn't have JAVA_HOME.  So I'm not sure what's happening.  It works fine just running it, but fails through Deploy.

    Comment actions Permalink

Please sign in to leave a comment.