Window System install Java download JDK
First we need to download the Java SDK jdk,:http://www.oracle.com/technetwork/java/javase/downloads/index.html, click the download button below:
After downloading the JDK installation according to the prompts, as well as installing the JDK will also install the JRE, installed on it.
Install the JDK, the installation process can customize the installation directory, such as information, such as we choose the installation directory for C:\Program files\java\jdk1.7.0.
Configuring Environment variables
1. After the installation is complete, right-click on "My Computer" and click "Properties";
2. Select the "Advanced" tab and click on "Environment variables";
Then it will appear as shown in the screen
Set 3 properties in "System variable", Java_home,path,classpath (case does not matter), if already exist then click "Edit", not exist then click "New".
Variable settings
- Variable name: java_home
- Variable Value: C:\Program files\java\jdk1.7.0
Here is the installation path of your JDK, which can be replaced
- Variable name: CLASSPATH
- Variable value:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; Remember, there's a "." in front.
- Variable name: Path
- Variable value:%java_home%\bin;%java_home%\jre\bin;
This is the Java environment configuration, which starts eclipse directly after the configuration is complete, and it automates the configuration of the Java environment.
Test whether the JDK was installed successfully
1, "Start"->; " Run, type "cmd";
2, type the command "Java-version", "Java", "Javac" several commands, appear screen, indicating that the environment variable configuration is successful;
LINUX,UNIX,SOLARIS,FREEBSD environment variable Settings
The environment variable path should be set to point to the location where the Java binaries are installed. If Setup encounters difficulties, refer to the shell documentation.
For example, if you use bash as your shell, you can add the following to the end of your. bashrc file: Export Path=/path/to/java: $PATH
Popular Java Development tools
The so-called 工欲善其事 its prerequisite, we in the development of Java language process also need to be good development tools, the current market of many Ides, this article for you to recommend several Java development tools:
- notepad++: notepad++ is a free code editor under the Microsoft Windows environment: http://notepad-plus-plus.org/
- Netbeans: Open Source free java IDE,: http://www.netbeans.org/index.html
- Eclipse: Another free, open source Java IDE: http://www.eclipse.org/
Reproduced from the Java Development environment configuration
Java Development Environment Configuration