Original http://go-learning.com/2012/05/23/java-gettingstart-1/
Java getting started tutorial series-Development Environment build Posted on May 23, 2012 by Johnny
Before using any computer language for programming, you need to build a development environment. Simply put, this process requires installation of some development software and related configuration. The software required for each computer language is different. For Java language, you need to install at least one JDK (this is a proprietary name and should be memorized). The full name of JDK is-Java Development Kit, translate to Chinese is called Java development toolbox. You can download this software from the official Oracle website, link is http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u32-downloads-1594644.html
After opening the page, select the license agreement and click jdk-6u32-windows-x86.exe.
You can download the program. After downloading the program, it is an executable program of exe. Double-click the program to start the JDK installation process and click "Next ",
Click "change" until you select the component to be installed and the installation directory ",
Set the installation target directory to d: \ dev \ jdk1.6 (this setting is not required. Here, this setting mainly aims to simplify learning ).
Click "OK"
Click "Next" until the installation is complete.
After the installation is complete, we need to set some system environment variables, one is JAVA_HOME and the other is PATH.
On the desktop, right-click my computer, click "properties", select "advanced" in the dialog box, and click "environment variable"
Click "new"
Enter JAVA_HOME in the variable name, d: \ dev \ jdk1.6 in the variable value, and click "OK"
Then select the "path" variable in the system Variable list and click "edit"
Move the cursor to the frontend of the variable value text box, add "d: \ dev \ jdk1.6 \ bin;", and click "OK"
Click "OK" in the "environment variables" window and "System Properties" window.
Enter java-version in the command line and run it. If the following result is displayed, your JDK has been installed.
After JDK is installed, we can start development. However, without the support of IDE (private name, note-Integration Development Environment-Chinese is called the integrated Development Environment), the Development work will become very complicated and difficult, so in actual Development, we will definitely install and use an IDE. In this series of courses, we choose Eclipse as our IDE, which is also the most widely used IDE in real Java development.
We can download Eclipse from the Eclipse official website-http://www.eclipse.org/downloads/, we select "Eclipse for Java Developers" version ,.
After the download is complete, it is a zip file. We just need to simply extract the content of the zip file to the d: \ dev directory.
After all the steps are completed, your d: \ dev directory should be like this.
Then, select d: \ dev \ eclipse \ eclipse.exe to start the Eclipse development environment.
If everything is okay, you can start learning the Java language.
Preface