Upgrading WebSphere Commerce Developer to 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
- Consider using the most recent fix pack for WebSphere Commerce. For upgrading WebSphere Commerce Developer 8.0.4.27 to Java 8, see Upgrading WebSphere Commerce Developer to WebSphere Application Server bundled Java 8.
- You can only update to use IBM SDK Java Technology Edition
Version 8 if your existing WebSphere Commerce runtime instance is on
WebSphere Commerce 8.0.4.23 or greater. For information about
installing fix packs, see Installing maintenance for WebSphere Commerce.Note: If you have already upgraded your environment to Java 8 before installing this fix pack, you must update the references to Java in your utilities after applying the fix pack (Step 6).
Procedure
-
Upgrade your existing WebSphere Application Server to version 8.5.5.18 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 your existing profile to use the Java version 8.0
SDK.
WASInstallDir\bin\managesdk.bat -enableProfile -profileName profileName -sdkName 1.8_64
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
- Set your existing profile to use the 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.
- If you are using WebSphere Commerce Developer
version 8.0.4.24 or greater.
- Navigate to the WC_installdir\bin\ directory.
- Run the updateJava8.bat utility script.
- If you are using WebSphere Commerce Developer
version 8.0.4.25, you must manually edit the
setenv.bat utility script. This is not
required to be done on 8.0.4.24, 8.0.4.26, or any subsequent fix
packs.
- Navigate to the WC_installdir\bin\ directory.
- Open the setenv.bat utility script file for editing.
- Locate and replace the following two lines in the utility
script:
- Replace this
line:
for /d %%i in ("%WED_HOME%\rcp\eclipse\plugins\com.ibm.rcp.base_
With the following line:for /d %%i in ("%WED_HOME%\rcp\eclipse\plugins\com.ibm.rcp.base_*") do set RCP_BASE=%%i
- Replace this
line:
for /d %%i in ("%WED_HOME%\rcp\eclipse\plugins\com.ibm.rcp.j2se.win32.x86_
With the following line:for /d %%i in ("%WED_HOME%\rcp\eclipse\plugins\com.ibm.rcp.j2se.win32.x86_*") do set RCP_JRE=%%i\jre
- Replace this
line:
- Save and close the file.
- If you are using WebSphere Commerce Developer version
8.0.4.23.
Manually update the references from
java_1.7_64
tojava_1.8_64
in the following files:- WCDE_installdir\bin\setenv.bat
- WCDE_installdir\setup\setup.xml
- WCDE_installdir\install\wc_default.properties
- WCDE_installdir\wcbd\deploy\server\wcbd-setenv.bat.template
- WCDE_installdir\wcbd\deploy\server\wcbd-setenv.template
- WCDE_installdir\wcbd\wcbd-setenv.bat.template
- WCDE_installdir\wcbd\wcbd-setenv.template
- If you are using WebSphere Commerce Developer
version 8.0.4.24 or greater.
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.