First, Download:
Java SE (JDK) can be downloaded and installed in http://www.oracle.com/technetwork/java/javase/downloads/index.html
The Java approximate version differs from the following:
Java SE(Java platform,standard Edition) it allows you to develop and deploy Java applications that are used in desktops, servers, embedded environments, and live environments. Java SE contains classes that support Java WEB Service development and provides the basis for Java platform,enterprise Edition (Java EE)
java EE(Java platform,enterprise Edition). This version was formerly known as the Java EE. The Enterprise Edition helps develop and deploy portable, robust, scalable, and secure server-side Java applications. Built on the Java SE, Java EE provides Web services, component models, management, and communication APIs that can be used to implement enterprise-class service-oriented architecture (service-oriented Architecture,soa) and Web 2.0 applications.
java ME(Java platform,micro Edition). This version was formerly known as J2ME. Java ME provides a robust and flexible environment for applications running on mobile devices and embedded devices such as mobile phones, PDAs, TV set-top boxes, and printers
JRE Java Runtime Environment, to ensure the operation of basic Java programs, install the basic "JVM" Java Virtual machine
There are three types of Java SE:
JDKfor Java program Development and operation
Server JRE, for use with Java programs running on servers
JREfor the client Java program to run.
Second, installation :
Download the Java SE JDK installation file, double-click Install, first install JDK (SDK), Next, install JRE (running environment), install complete.
Three, configuration:
Configuration is for more convenient use of the JDK, such as the execution of a command, it is difficult to write a long list of paths ahead
To determine if the JDK is installed: Open the cmd command line to the bin directory in the JDK installation directory, enter Java and have the following output, the installation succeeds.
(the Java command corresponds to the Java.exe file in the bin directory, as well as other commands and files, such as the Javac (compile) command corresponding to the Javac.exe file in its directory)
Add system Environment Variables: Add the Bin directory path under the JDK installation directory to the system environment variable path. Otherwise, the error will be: ' Java ' is not an internal command
Any new file directory (Java code will be placed here), the new system environment variable classpath, the directory path is added to Classpath. Otherwise it will error: Exception in thread "main" java.lang.noclassdeffounderror:[filename]
Java Learning 1--JDK (pre-school preparation)