Switching JDK Versions

See Also 

By default, the IDE uses the version of the J2SE platform (JDK) with which the IDE runs as the default target Java platform for compilation, execution, and debugging. You can view your IDE's JDK version by choosing Help and choosing About and clicking the Detail tab. The JDK version is listed in the Java field.

You can run the IDE with a different JDK version by starting the IDE with the -jdkhome jdk-home-dir switch on the command line or in your ide.cfg file. For more information, see IDE Startup Parameters.

You can also run the IDE on one JDK version but develop code that is targeted for another Java platform. You can set the IDE to use the compilers, debuggers, and executors provided by different JDK versions. You can also use the default Java platform's tools to compile and debug code against older Java platform libraries.

See Also
Choosing the IDE's Default JDK Version
Target Java Platform Configuration
Cross-Compiling Between Java Platforms
Working With Assertions

Legal Notices