For Java developers, the first step is to configure the Java development environment.
You need a JDK, not a JRE!
1.
After Oracle acquired Sun, a new version of Java was released by Oracle.
The current version is JDK 1.8
Http://www.oracle.com/technetwork/java/javase/downloads/index.html
Select the corresponding operating system version (Windows/linux/solaris/mac OS, 64bit/32bit) todownload.
2. Installing the JDK
2.1 Windows:
Choose the installation directory (the default is C:\Program Files\java, the proposed new without space path), all the way "next", waiting to complete;
2.2 Linux:
Full complement
2.3 Solaris:
Full complement
2.4 Mac OS:
Full complement
3. Configure Environment variables
3.1 Windows:
3.1.1 computer → properties → advanced system settings → advanced → environment variables
3.1.2 System variables → new java_home variable
Variable value fill in the JDK installation directory (example: E:\Java\jdk1.8.0)
3.1.3 System variables → find Path variable → edit
Enter%java_home%\bin at the end of the variable value ;
(Note that the original path of the variable value at the end of there is no; number, if not, first enter; number and then enter the above code)
3.1.4 system variable → new CLASSPATH variable
Variable values are filled in .; %java_home%\lib; (Note that there is a point in the front),
If the CLASSPATH variable already exists, the value of the variable is entered at last ;%java_home%\lib;
System variable configuration is complete. Cmd-javac
3.2 Linux:
Full complement
3.3 Solaris:
Full complement
3.4 Mac OS:
Full complement
Java Environment Configuration