Reputation: 1145
Since WAS 8.5 is by default shipped with IBM JDK6, I have installed IBM JDK7 using the Installation Manager
But when I run my application, it's taking the IBM JDK6 instead of JDK7
Can someone please let me know how to set JAVA_HOME to take the JDK7 instead of JDK6
Thanks in advance
Upvotes: 4
Views: 24904
Reputation: 2987
You can change the SDK used by the server from the web console: select your server on the web console, then on the right, click on "java SDKs" and select the one you want
Upvotes: 0
Reputation: 439
Yes Maciej,
I believe i could setupCmdLine.bat would help here.
Thanks, Kusuma
Upvotes: -2
Reputation: 140
Take a look inside setupCmdLine.bat/sh file in your WAS installation directory. As far as I remember you should be able to set JAVA_HOME directly (e.g. JAVA_HOME=C:\Program Files\WebSphere\AppServer\java or JAVA_HOME=C:\MyJDK)
Upvotes: -2