run multiple JDK's simultaneously
i want to know if i can run multiple JDK's on my PC and use them all
if i can, what is the value of the PATH on system variable
thanks for h开发者_高级运维elp
Yes, you can install as many JDKs as you like. Just put them in different folders.
The one you refer to on the path is your choice - but presumably you'd choose the one that you want to use whenever you type "java ...." commands at the command line. In the absence of any other factors you should probably set this to be your most recent JDK version.
Note that your IDE may support multiple JDKs, for example Eclipse has "Preferences / Java / Installed JREs" where you can set up multiple JDKs/JREs for use with Eclipse.
精彩评论