For novice Java, I just started to learn Java, and how should I configure the environment on my computer without developing the development of Java?
(Android novice also needs the Java development environment)
The first step, download and install java jre
JRE (Java Runtime Environment), that is, the Java operating environment, is a collection of environmental environmental environment, including various types of libraries.
1. JRE official download;
http://www.orace.com/technetwork/java/javase/downloads/index.html
2. Click the java word icon on the left:
3. After entering the next layer of page, click to agree "Accept License Agreement", and then select the type you want to download according to your computer system. If your computer is 32 -bit, download WindowsX86, 64 -bit, download Windows X64.
If you do n’t know if your computer is 32 -bit or 64 -bit, you can knock SystemInfo under the command prompt and find the system type. If X86 represents 32 -bit, X 64: 64 -bit.
Generally, XP is 32 -bit, and 32 -bit with 64 -bit system with Win7. Select 32 -bit here to download:
4. When the saving window pops up, try to place it in the pure English directory and use the default path of the system during installation.
5. The installation is very simple, select the "development tool" by default, and then click the next step.
The second step, configure 3 environment variables:
Right-click my computer-> attribute-> Advanced-> Environment variable.
1. New system variable java_home, variable value is your path for you to install JRE, such as: C:/Program Files/Java/JDK1.8.0_51
2. Edit system variable path, PATH generally exists, so you need to choose PATH to edit it. Add it after the variable value:;%java_home%/bin;%java_home%/jre/bin
Note that there must be a number before; separate from other paths that have already existed before.
3. New system variable class_path, variable value is:;%java_home%/lib/dt.jar;%java_home%/lib/tools.jar;
Be careful not to ignore the previous "."
Finally, open the command prompt CMD, enter Java, and return. Enter Java Version and Enter. Finally enter Javac Version and Enter. As long as there is data after returning, it proves that it is successful.
The third step is to download and install Eclipse.
Eclipse is a common tool for developing the Java project.
1. Search Eclipse on Baidu to recognize the official website of Eclipse. http://www.eclipse.org/downloads/
2. Enter the download page, see it, you want to download the "Eclipse IDE for Java Ee Developers", choose 32 -bit or 64 -bit according to your system.
3. After entering the download page, drag the page to the bottom, and select the download link shown in the figure below (this is a download link "Northeast University" for the domestic download link).
4. Click "Click Here" and start downloading it immediately.
5. Plug the downloaded window. Save the file, decompress and put it in the full English directory (do not include Chinese in the entire path of the directory).
Step 4: Modify the configuration file launched by Eclipse
Eclipse does not need to be installed after decompression, just run directly. However, the configuration file needs to be modified to start successfully.
Open the file of Eclipse.ini. Double -click to open it directly, or open it with a notepad.
Sometimes the content in this file becomes only a long line, and all the return rows will become a rectangular small black block. At this time, you need to delete these black blocks, and then return to the car in this place.
Make the configuration file look like the format shown in the figure below:
Then modify the content under Openfile (the red line) to your JDK installation path (C:/Program Files/Java's directory starts with JDK), such as: C:/Program Files/Java/JDK1.8.0.0 _51/bin/javaw.exe
Save the configuration file.
The fifth step is to start Eclipse and develop it.
At this time, Eclipse can be successfully started. When starting, you will set the working directory by default, and you can also set other directory (preferably in English).
And you can check the following "Use this as the default and do not ask Again", so as not to start the working directory every time you start.
After surely, you can open Eclipse and develop it. Below is a welcome page after Eclipse starts.
The above is all the contents of this article. I hope it will be helpful to everyone proficient in the Java development environment.