Look at << Java depth exploration >>, know which java.exe running on our machine, reference a picture of loosely coupled space.
This way we can easily manage Java.exe on our machine. That is to decide which java.exe to explain our Java program.
ESAY WAY: For example, we have installed C: /JDK1.3 and C: /JDK1.4.2 two JDK.
If we now want to use 1.4.2 Java, we will add C: /jdk1.4.2/bin directly in the front of the PATH variable of the environment variable;
Other equally, similar settings.
Enjoy the java!
Finally, I still have any questions:
There are JDK1.3, 1.4, 1.5 coexistence on the machine.
We can specify the Java.exe version we run by setting the PATH environment variable.
I am now path = c: / jdk13 / bin; .....
System starts cmd -> java -version -> Java Version "1.3.1"
But now I have installed JDK1.5, I run Applet programs, which always use plug-in1.5 to run, run Applet,
CMD -> Java -Version -> Java Version "1.5.0"
CMD -> PATH -> C: /Progra ~ 1/java/jre15~1.0/bin; c: / jdk13 / bin; -> What is this overwritten?
consult:
If the configuration can specify directly of the PLUG-IN version to run?
What is the operation mechanism of PLUG-IN?