Upgrading WebSphere Commerce Developer to WebSphere Application Server bundled Java 8
In this task you will upgrade an existing WebSphere Commerce Developer to use Java 8. Upgrading to a newer version of Java and WebSphere Application Server will allow you to ensure compatibility and continue receiving product support. The specific version of Java that is run on your SDK will be IBM SDK Java Technology Edition Version 8.0 for WebSphere Application Server.
Before you begin
Procedure
-
Upgrade your existing WebSphere Application Server to version 8.5.5.19 or
greater.
Note:
- For information about the latest WebSphere Application Server fix packs, see Fix list for IBM WebSphere Application Server V8.5.
- For WebSphere Application Server fix pack installation instructions, see
-
Change the WebSphere Application Server profile in your WebSphere Commerce Developer
environment to use the new Java version.
- Stop the WebSphere Commerce Test Server.
- Obtain the WebSphere Application Server Profile name. Open the
WCDEInstallDir\wasprofile\logs\AboutThisProfile.txt
text file and locate the name. For example,
WCDE_E~1_145207
. - In a command prompt, run the following commands:
- Set the command default to use the bundled
Java version 8.0
SDK.
WASInstallDir\bin\managesdk.bat -setCommandDefault -sdkname 1.8_64_bundled
- Set any newly created profiles to default to
use the bundled Java version 8.0
SDK.
WASInstallDir\bin\managesdk.bat -setNewProfileDefault -sdkname 1.8_64_bundled
- Set your existing profile to use the bundled Java version 8.0
SDK.
WASInstallDir\bin\managesdk.bat -enableProfile -profileName profileName -sdkName 1.8_64_bundled
Where profileName is the profile name from the previous step.
For example:W:\WebSphere\AppServer\bin\managesdk.bat -enableProfile -profileName WCDE_E~1_145207 -sdkName 1.8_64_bundled
- Set the command default to use the bundled
Java version 8.0
SDK.
-
Update the WebSphere Commerce Test Server runtime environment.
- Start WebSphere Commerce Developer.
- Open .
- On the list of preferences, open .
- Select WebSphere Commerce Runtime and click Edit. A window is displayed.
- Change the JRE for the runtime environment to WebSphere Application Server traditional JRE 1.8. The location of the JRE is WASInstallDir\java\jre
- Click Finish.
- If a warning is displayed about migrating your project facets to Java 1.8:
- Click yes to accept and migrate your project facets automatically.
- If a migration warning is not displayed, you must migrate your project
facets to Java 1.8 manually. For each project in your workspace:
- Open the WCDE_installdir\workspace\projectname\.setting\org.eclipse.wst.common.project.facet.core.xml file for editing, where projectname is the folder specific to each project.
- Find and replace the
reference:
to:<installed facet="jst.java" version="1.7"/>
<installed facet="jst.java" version="1.8"/>
- Save the file.
- Restart and then republish the WebSphere Commerce Server and Search server applications.
-
Replace the references to Java within your environment.
- Navigate to the WC_installdir\bin\ directory.
- Run the updateJava8.bat utility script.
Results
Restriction: If you
want to restore your development environment to default through the use of the
restoreDefault.bat
utility script, you must first reverse the
process completed in Step 6. Once you have restored your environment to default, you
can once again upgrade to Java 1.8 by following this task.