Eclipse basics-Java environment variable settings

Source: Internet
Author: User
Eclipse basics-Java environment variable settings

Http://blog.csdn.net/javamxj/archive/2004/10/11/131935.aspx

I am a Java enthusiast. I naturally installed a lot of Java software, most of which are open source code, and most of which are green software. I just need to decompress the software and set the environment variables.

Because the software itself is frequently upgraded, it is often necessary to reset the environment variables used, and I often install different versions of the same software at the same time (or even the same version ). For example, in eclipse, I have installed different versions on the F, G, and H disks. One is the Chinese version, the other is the English latest release, and the other is the stream stable, it is a green installation, and there will be no conflict, so that you can easily understand and test the latest version through comparison. However, if the JDK version is upgraded from 1.3 to 1.4, that is, the JDK directory name may be changed from "j2sdk1.3" to "j2sdk1.4". If so, eclipse may no longer be able to start (it needs to find the java_home variable from the environment variable, and the java_home variable value has been changed from "j2sdk1.3" to "j2sdk1.4 ). When talking about Jakarta-Tomcat, this software is upgraded frequently. If you use tomcat in combination with Eclipse, then every Tomcat upgrade, you may have to reset the tomcat installation directory in eclipse. Is it a little troublesome? The solution to this problem is simple. You only need to remove the default software installation directory name from the version number (if you are worried about forgetting the version number, you only need to add a ReadMe file to the directory to describe it ). For example, I have no version numbers for j2sdk, ant, and jakata-Tomcat. Similarly, no version is displayed in the environment variable settings. In this way, if you need to upgrade the software, you only need to install the new software in the old Software Directory. Other changes are not required. In addition, you can replace the variable value with % variable % in environment variable settings. For example, you can set the PATH variable value as follows: % java_home % \ bin; % jboss_home % \ bin; % ant_home % \ bin;
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.