I am working on two projects one uses JDK 8 and other uses JDK 6. I installed both the jdks in my machine where JDK8 is set as my default JVM. so I am good with one project settings.
When I am working on second project, I tried to change JAVA_HOME to C:\Program Files\Java\jdk1.6.0_45 and PATH added with C:\Program Files\Java\jdk1.6.0_45\bin and surprisingly I am seeing JDK8 as my default JVM. I checked with java -version or java -fullversion.
Questions.
Where should I stop the Java process that is initiated with JDK8 ? Where should I start the Java process for JDK6 ? How should I easily switch JVMs when I switch back and forth working on two projects ?
I dont like the idea of uninstalling one jvm when I have to work with another jvm.
Please suggest me. Thanks for your time.
Narayana.V