(CR #473660) If you run the deploy.sh command line tool with the -jdk15 option, EAServer should compile generated Java source files with the JDK 1.5 compiler, but this option does not work. EAServer uses the JDK 1.4 compiler instead.
Workaround: Use these options to specify the JDK version, the runtime library, and the compiler version for compiling the generated Java source files:
Compiler version |
Options |
---|---|
JDK 1.4 |
-jdk14 -rt14 -target14 |
JDK 1.5 |
-jdk15 -rt15 -target15 |
JDK 1.6 |
-jdk16 -rt16 -target16 |
For example, to deploy test.war, load eas-server-15.jar, and compile the generated Java source files with the JDK 1.5 compiler, run:
deploy.sh -jdk15 -rt15 -target15 test.war