siva
siva

Reputation: 1145

how to set JAVA_HOME in Websphere Application server 8.5

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

Answers (4)

titou10
titou10

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

kusumat
kusumat

Reputation: 439

Yes Maciej,

I believe i could setupCmdLine.bat would help here.

Thanks, Kusuma

Upvotes: -2

Use the documented managesdk command.

Upvotes: 8

Maciej
Maciej

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

Related Questions