Switching JDKs

By default, the IDE uses the JDK with which it runs as the default target JDK for compilation, execution and debugging. You can view your IDE's default JDK by choosing Help and choosing About and clicking the Detail tab. You can change the IDE's default JDK by starting the IDE with the -jdkhome JDK directory switch on the command line or in your ide.cfg file.

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

For more information on working with multiple JDKs, see:

Choosing the IDE's Default JDK
Target JDK Configuration
Cross-Compiling Between JDKs
Working With Assertions


Legal Notices