![]() |
OpenMake Meister |
If you want to build multiple java components by using different Java
compilers for different parts of the build, you will need to set up your environment variables to support each of the different compilers. By default, the build will pass the environment variable JAVA_HOME to Ant. The JAVA_HOME environment variable points to the location of your default JAVA compiler. When using multiple compilers, JAVA_HOME must be replaced by the environment variable that is appropriate for each compiler as each compiler is being used.
Set the following environment variables to point to the appropriate location of the compilers as listed. These environment variables override the value of JAVA_HOME for the corresponding Task:
Ant Javac Tasks:
Java Compiler |
Environment Variable |
Sun/IBM JDK 1.1.x |
JDK11_HOME |
Sun/IBM JDK 1.2.x |
JDK12_HOME |
Sun/IBM JDK 1.3.x |
JDK13_HOME |
Sun/IBM JDK 1.4.x |
JDK14_HOME |
Jikes |
JIKES_HOME |
KOPI |
KOPI_HOME |
GNU |
GCJ_HOME |
MICROSOFT J++ |
JVC_HOME |
Symantec |
SJ_HOME |
Ant RMIC Task
RMIC Compiler |
Environment Variable |
Sun/IBM JDK |
JAVA_HOME |
KAFFE |
KAFFE_HOME |
WebLogic |
WEBLOGIC_HOME |