Switching to Java 7.0 SDK in WebSphere Application Server
You can switch from Java 6.0 to Java 7.0.
About this task
By default WebSphere Application Server V8.5.5 uses the Java 6.0 SDK, but you can switch to Java 7.0 SDK if required.
Procedure
- Stop the WebSphere Application Server.
- Install the Java 7.0 SDK by following these instructions: Installing IBM WebSphere SDK Java Technology Edition Version 7.0 using the GUI.
- Run one of the following commands, depending on your operating system:
- For UNIX or Linux, run
WAS_HOME/bin/managesdk.sh -enableProfile
-profileName profilename -sdkname 1.7_64.
For
example:
/opt/IBM/WebSphere/WSRR/v8.5/bin/managesdk.sh -enableProfile -profileName WSRRSrv01 -sdkname 1.7_64
- For Windows, run WAS_HOME/bin/managesdk.bat
-enableProfile -profileName profilename -sdkname
1.7_64. For
example:
c:\IBM\WebSphere\WSRR\v8.5\bin\managesdk.bat -enableProfile -profileName WSRRSrv01 -sdkname 1.7_64
- For UNIX or Linux, run
WAS_HOME/bin/managesdk.sh -enableProfile
-profileName profilename -sdkname 1.7_64.
For
example:
- Start the WebSphere Application Server.
- Optional: If you are using Oracle 12C as your database, it is recommended that you use
the Java 7 version of the Oracle JDBC driver, ojdbc7.jar.
To do this, you must copy ojdbc7.jar from the
jdbc/lib directory of your Oracle installation into the WAS_HOME/WSRR/jdbcdrivers/Oracle on your WSRR
server. If you are running WSRR in a cluster, you must copy the driver to every
server in the cluster, then run the following script. From the
WAS_HOME/WSRR/install/jython
directory of the WSRR deployment manager, run the
oraclejdbc.py script. Supply values for the node and
server or cluster:
/bin/wsadmin.sh –user username –password password –lang jython -f oraclejdbc.py -cell cellName [-node nodeName -server serverName] | [-cluster clusterName] -javaver 7
Parent topic: Installing WebSphere Service Registry and Repository