Eclipse 3.0 Installation Configuration

Source: Internet
Author: User
Tags valid

Eclipse is a very good open source IDE that is ideal for Java development and is being welcomed by more and more developers as a result of supporting plug-in technology. The latest Eclipse 3.0 has not only enhanced the interface, but also increased the number of excellent features such as code folding, and the speed has been significantly improved. With many dazzling plug-ins, can fully meet from the enterprise-class Java applications to mobile phone terminal Java game development. This article will take you step-by-step into Eclipse's vast world, detailing how to develop common Java programs, Web applications, Java EE apps, cell phone applets, and how to unit test, refactor, and configure CVS under Eclipse.

My development environment is jdk1.4.2+eclipse3.0+windows XP SP2, if you encounter any problems on other platforms, welcome to the letter exchange.

1. Install JDK1.4

Eclipse is a Java platform based development environment that itself runs on the Java Virtual machine and uses the JDK compilers, so we must first install the JDK. JDK1.4 is the most stable version at the moment, and is also necessary for eclipse to run. First download the JDK1.4 Windows version from Sun's official site http://java.sun.com, now the latest 1.4.2_06, and then run j2sdk-1_4_2_06- Windows-i586-p.exe installation, you can set up your own installation directory, I installed it into the D:\software\j2sdk1.4 directory.

Next you configure the environment variables so that the Java program can find the installed JDK and other configuration information. Right click on "My Computer", select "Properties", in the pop-up dialog box select "Advanced", "Environment variables", you can see the Environment Variable dialog box:

The above is a user variable that is valid only for the current user, and the following are system variables that are valid for all users. If you want all users to be able to use it, click "New" under the system variable and fill in:

Java_home is the installation directory for JDK, and many development environments that rely on JDK rely on it to locate the JDK, so it must be guaranteed to be correct.

Next, locate the system variable path, click Edit, and in the directory where the JDK executable is added, the%java_home%\bin, my corresponding directory is D:\software\j2sdk1.4\bin, attached to path, and note the semicolon. ;” Separated:

Note: If you have more than one Java virtual machine installed (such as a JDK1.3 with Oracle 9i installed), you must place the JDK1.4 path in front of the other JVM, or Eclipse startup will complain.

The last system variable is the Classpath,java virtual opportunity to search the directory of the class file based on the classpath settings, but this is not required, you can specify classpath when you run the Java program, For example, when running a written Java program in Eclipse, it automatically sets the classpath, but in order to easily run Java programs on the console, I suggest it's best to set a classpath and set its value to "." and note that it's a point "." Represents the current directory. Users who are accustomed to Windows may think that Java virtual machines will search the current directory when they search, but that is not the case in Unix, for security reasons. A lot of beginners Java Friends hing hurriedly according to the book written Hello,world program, a run but pop-up java.lang.NoClassDefFoundError, in fact, is not set up a good classpath, just add a current directory. It's OK.

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.