Java development environment configuration
In this chapter we will introduce how to set up a Java development environment.
Window system installation java
Download JDK
First we need to download the java development tool kit JDK, download address: http://www.oracle.com/technetwork/java/javase /downloads/index.html, click the following download button:
After downloading, install the JDK according to the prompts. When installing the JDK, the JRE will also be installed, so just install it together.
Install JDK. During the installation process, you can customize the installation directory and other information. For example, we choose the installation directory as C:Program FilesJavajdk1.7.0.
Configure environment variables
1. After the installation is completed, right-click "My Computer" and click "Properties";
2. Select the "Advanced" tab and click "Environment Variables";
Then the screen as shown below will appear
In "System Variables" Set 3 properties in JAVA_HOME, PATH, CLASSPATH (case does not matter). If it already exists, click "Edit", if it does not exist, click "New".
Variable setting
Variable name: JAVA_HOME
Variable value: C:Program FilesJavajdk1.7.0
//This is your JDK installation path, you can change it
Variable name: CLASSPATH
Variable value: .;%JAVA_HOME%libdt.jar;%JAVA_HOME%libtools.jar; //Remember there is a "." in front of it
Variable Name: Path
Variable value: %JAVA_HOME%bin;%JAVA_HOME%jrebin;
This is the environment configuration of java. After the configuration is completed, start eclipse directly and it will automatically complete the configuration of the java environment.
Test whether the JDK is installed successfully
1. "Start"->;"Run", type "cmd";
2. Type the command "java -version" , "java", "javac" several commands, a screen will appear, indicating that the environment variable configuration is successful;
Linux, UNIX, Solaris, FreeBSD environment variable settings
The environment variable PATH should be set to Points to the location where the Java binaries are installed. If you have trouble setting up, please refer to the shell documentation.
For example, assuming you are using 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
As the saying goes, if you want to do your job well, you must first sharpen your tools. We also need good development tools in the process of developing Java language. There are many IDEs on the market. This article recommends a few for everyone. Java development tools:
Notepad++: Notepad++ is a free code editor under the Microsoft Windows environment. Download address: http://notepad-plus-plus.org/
Netbeans :Open source and free java IDE, download address: http://www.netbeans.org/index.html
Eclipse: Another free and open source java IDE, download address: http://www.eclipse.org /
The above is the content of [java tutorial] Java development environment configuration. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!