When you compile sources, by default the IDE uses the default compiler and system libraries on which it runs. You may, however, want to compile an application to optimize it for a specific Java platform. In this case, you will want to compile the sources against a specific Java platform's system libraries and possibly using a specific compiler version.
For example, you might be developing an application that is designed to run on JDK 1.3 while running the IDE on JDK 1.4. In this case, you should configure your sources' compiler type to use the JDK 1.3 compiler.
To configure a compiler type to use a specific Java platform's compiler:
This change causes the compiler type to use both the compiler and the system libraries of the selected Java platform. The change affects all files and templates that use this compiler type.
However, you might need to compile an application against an older Java platform without using the older version's compiler. For example, you might need to compile applets against JDK 1.1, but not want to use the JDK 1.1 compiler because of performance reasons. In this case, you should use the External Compiler and set the compiler type's Boot Class Path property to the desired Java platform.
To configure a compiler to use a specific Java platform's system libraries:
This change affects all files and templates that use this compiler type.
See Also | |
---|---|
Compiler Types in the IDE Compiling a Java Program Switching JDK Versions Target Java Platform Configuration |