KB Article #175915
Composer opened with another Java version installed
Problem
-- How can open Composer client with different sort (version) of Java ?Resolution
* Composer client should be opened from a *.batch command file where you may fine tune up the Java version used, updating the appropriate line, as follows:1. download Composer.jnlp file as 'c:\modified_Composer.jnlp';
2. create 'start_modified_jnlp.bat' file;
3. edit 'start_modified_jnlp.bat' file as follows:
call "c:\Program Files (x86)\Java\jre1.6.0_18\bin\javaws.exe" c:\modified_Composer.jnlp
4. replace the appropriate line in 'c:\modified_Composer.jnlp' with one of the lines below:
- original state:
<!-- J2SE version and vm args -->
<j2se version="1.6*" initial-heap-size="128m" max-heap-size="512m" java-vm-args="-Xss512k -XX:PermSize=64m -XX:MaxPermSize=384m"/>
- 1st change:
add a new line (keep in mind that the order of next 2 lines is significant):
<j2se version="1.7*" initial-heap-size="128m" max-heap-size="512m" java-vm-args="-Xss512k -XX:PermSize=64m -XX:MaxPermSize=384m"/>
<j2se version="1.6*" initial-heap-size="128m" max-heap-size="512m" java-vm-args="-Xss512k -XX:PermSize=64m -XX:MaxPermSize=384m"/>
- 2nd change (if 1st change works and client agrees that, disregard next ones):
<!-- J2SE version and vm args -->
<j2se version="1.7*" initial-heap-size="128m" max-heap-size="512m" java-vm-args="-Xss512k -XX:PermSize=64m -XX:MaxPermSize=384m"/>
- 3nd change (final try, if 1st and 2nd changes won't work)
<!-- J2SE version and vm args -->
<j2se version="1.6+" initial-heap-size="128m" max-heap-size="512m" java-vm-args="-Xss512k -XX:PermSize=64m -XX:MaxPermSize=384m"/>
* it may be used either 1st change, _or_ 2nd one, _or_if_1st_and_2nd_didn't work the 3rd one.
5. clear Java cache:
* javaws -uninstall;
* remove .axwayComposer folder from Windows user profile folder;
6. run 'As Administrator' the 'start_modified_jnlp.bat' command file;