Installation of Preparation:
First check the computer the number of bits: Right click My Computer, point attribute, into your computer to see the number of bits as:
it can be seen that the system is a 64 bit operating system, here are my terms, by 64 bits;
download JDK download address:http: / / www. oracle. com / / java / java se / downloads / jdk8 – downloads – 2133151. html
personal selection of the first, the Java SE Development Kit 8u211 then find its own system of downloading,click on Accept License Agreement
1. First, the disc is created in a folder, Java, Java folder create two folders, and jdk jre.
2, find good just download the installation files, click, and altering the installation path to a just and a new folder, e.g., I is the E:\ Java\ jdk, then determined;
After completion of installation of the jdk jre installation interface will pop up, here to choose the installation path into the newly created folder jre below, after the installation, click Close.
configuration of environment variables:
Right – click My Computer, open the Advanced System Settings, then click the Environment Variables;
In the System variables below point to New, variable “JAVA _ HOME”, variable values, must oneself are installed jdk when a path, such as the installation path I is the E:\ java jdk\, path problems also need attention;
Next find CLASSPATH, not a new one, the variable named CLASSPATH variable value. “;% JAVA _ HOME%\ lib\ dt. jar;% JAVA _ HOME%\ lib\ tool. jar;”
Find the Path, edited in its original variable’s value should be inserted before the words”;% JAVA _ HOME%\ bin;% JAVA _ HOME%\ bin\ jre; “, add the method is such a C: the value of the variable;Then click OK, click OK.
a little experiment, Win + R keyboard input cmd Open a DOS interface, respectively input with java and javac, the java – version, appear as a result;
Download address: https: / / www. eclipse. org / downloads /
Select Download Package
download Java EE with the same version, click Download start downloading;
Then the eclipse to thank you and offered you a download request for a contribution, if after a period of time without a download, click click here
start up the eclipse
Find download eclipse before decompression, find this program, click open.
Prompt needs to select a work space.In the columns, click browse, choose their own work space (“to be the code stored in the folder)
After selecting, click launch to enter the eclipse
Enter home page, a page navigation.The lower right of the checkbox on the show (Always Welcome at start up) are no pop – up show this Welcome page again.(see his selected)
Then click the Workbench can enter the edit page
Next click on the right corner of the File – gt; Project to create a Java java project.In the Project name “to fill in the name of the project
In order to avoid the trouble of jre, directly check Use default JRE, then click Finish to create success.
Then, find the directory of the src folder right mouse button and choose New – Class created a class.Package is a package name, selectivity can be named.
Name is the name of the class, to fill in.Recommends the use of English words and the first letter uppercase, checking (a public static void main (String args)), click Finish to complete the class creation.
In the sixth row write on System. out. println (“Hello!!!”); Note that semicolons, and finally finished after clicking on the triangle block (FIG.), then it is ready to run.
Run to completion.