I am a java fan, I have a lot of Java software, most of which is open source, and most of them are green software, as long as they decompressed, set the environment variables.
Since the software itself is more frequent, it is often necessary to reset the environment variables used, and I often install different versions of the same software (even the same version). If I have a different version in F, G, and H, one is the Chinese version, one is the Latest release, one is stream stable, anyway, green installation, no conflict, this pass Contrast to understand and test the advanced version of the latest version.
But if the JDK version is upgraded from 1.3 to 1.4, the JDK directory name may be changed from "J2SDK1.3" to "J2SDK1.4". If this is the case, then Eclipse may not be launched again (it wants to be from environment variables) Look for java_home variables, while the Java_Home variable value has been changed from "J2SDK1.3" to "J2SDK1.4").
Talking about JAKARTA-TOMCAT, this software upgrade is more frequent, if you are combined with Eclipse to use Tomcat, then each Tomcat upgrade may all be reset to the Tomcat installation directory in Eclipse, is it a bit trouble?
For such problems, the solution is simple, just remove the default software installation directory name (if you are worried about the version number, just add a README file in the directory).
As shown in the figure above, there is no version number in J2SDK, Ant, Jakata-Tomcat, etc.
Similarly, there is no version number in the environment variable setting.
In this way, if you need to upgrade the software, you can only install the new version of the software in the old version of the software directory. Others generally don't need to be changed.
In addition, in the environment variable setting, the% variable% can be used instead of the variable, such as the PATH variable value can be set this:% java_home% / bin;% jboss_home% / bin;% Ant_Home% / bin;