How to change the location of the Java JDK (JAVA_HOME) that IBM WebSphere Application Server uses
To change the location of the Java Development Kit (JDK) that IBM WebSphere Application Server 6.0 (WAS) uses, the user must set the JAVA_HOME variable that WAS reads. To do this, follow the steps below:
Open the IBM WebSphere Administrator console.
Navigate to Environment > WebSphere Variables > Scope Node > JAVA_HOME, as shown below:
Update the JAVA_HOME variable to point to the location where the JDK is installed. For example:
Unix: JAVA_HOME=/usr/local/java/jdk1.4.0_13
Windows: JAVA_HOME=C:\j2sdk1.4.2_14
Apply the changes.
Apply changes to the master repository, as shown below:
Restart WebSphere Application Server for the changes to take effect.