Learning Java language Programming requires a development environment, and the JDK is the Java Development toolset.
Official website is www.oracle.com
:
Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
First select Accept License agreement
Then choose Jdk-8u25-windows-i586.exe
Download to Local
Software Installation:
All by default, click Next, but in the second step remember the following directory, which is used for the subsequent environment variable configuration.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/58/3C/wKiom1SsxS-AFLonAAHOyXhy6kM917.jpg "title=" Java.png "alt=" Wkiom1ssxs-aflonaahoyxhy6km917.jpg "/>
Environment configuration:
The software is installed, but can not be run, because the system does not know where the JDK is, so to tell the system, that is, set the PATH environment variable.
Win7 Desktop, My computer, right--Properties, advanced system settings, advanced systems, environment variables,
Win XP Desktop, My computer, right--Properties--Advanced environment variables.
Then you get the following window, and then you can add the environment variable.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/58/39/wKioL1SsynShlN9EAAIsIX6vhfo586.jpg "title=" Environment variables. png "alt=" wkiol1ssynshln9eaaisix6vhfo586.jpg "/>
In the following system variable to find the Path selected after the point of editing, the value of the variable appended to the JDK installation directory, which is installed above the directory plus a bin directory, the form of "; C:\Program Files (x86) \java\jdk1.8.0_25\bin ".
Once identified, the system will be able to find various software tools for the JDK.
But if it is, to write the program also need to add a "classpash" environment variable, because JAVA provides a lot of class library package, a lot of functions can be directly called to implement the function, do not need to write their own code, but the JDK does not know where they are, so add an environment variable.
In the following system variable, new, the variable name is "Classpaht" and the variable value is ".; C:\Program Files (x86) \java\jdk1.8.0_25\lib ".
After a variety of certain, executable, ready-to-develop JDK is installed.
Verify the success, Win + R, open run, enter cmd OK to open the command line.
Enter "Java" and "Javac", if the two commands come out a bunch of options is successful.
Integrated development tools Eclipse:
Development tools with the JDK above can only write code in command windows with a variety of commands. But the Eclipse Integration development tool is very powerful and convenient, so use it.
Official website of http://www.eclipse.org/downloads/
In the eclipse IDE for Java developers, choose whether your computer is a 32-bit or 64-bit system.
Download after decompression, found in the color * * * * * * * * * * program can be executed.
For convenience, you can create a shortcut on the desktop.
Java JDK and Eclipse installation