WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

How to change JAVA_HOME for application deployed in WAS 8.5 base edition windows platform?

  • 1.  How to change JAVA_HOME for application deployed in WAS 8.5 base edition windows platform?

    Posted Sun May 17, 2015 05:30 AM

    Hi,


    I am using WAS 8.5 base edition on windows platform and I wish to have JAVA_HOME changed for application installed on the JVM.



    Currently the app is using JAVA_HOME as “D:\Program Files (x86)\IBM\WebSphere\AppServer\java” while we want the app to use JAVA_HOME which is “D:\IBM\EMM\Platform\jre\bin\java”



    How can I get it done?


    Kindly provide me with suggestions.



    Thanks,


    Kushal



  • 2.  How to change JAVA_HOME for application deployed in WAS 8.5 base edition windows platform?

    Posted Mon May 25, 2015 12:33 PM
    Hi Kushal,

      I'm not sure if you can use another than provided by WebSphere.
     
      You have several scripts related to manageSDK that are pointing to WAS_HOME\java o WAS_HOME\java_1.7_64 so if you change JAVA_HOME you can have unknown issues.
     
      You can try to change from Admin Console JAVA_HOME environment variable but you have the same environment variable inside several scripts in WAS_HOME\bin
     
      Why do you want to use other java than WAS_HOME\java?
     
    Regards


  • 3.  How to change JAVA_HOME for application deployed in WAS 8.5 base edition windows platform?

    Posted Wed June 10, 2015 05:24 PM
    set JAVA_HOME ="" in setupCmdLine.bat

    or

    Set as environment variable if the server is running in windows box.

    check in systemout/startserver.logs if the required JVM path which you wanted is loaded. 

    Its not recommended for IBM WAS to use other out of box JDK's