Java Development Environment JDK 1.8 installation Configuration method (Win7 64-bit system/windows Server 2008) _java

Source: Internet
Author: User
Tags java se

What is JDK

What is the JDK? The JDK is the abbreviation of Java Development Kit, which means the toolkit developed by Java programs. You can also say that the JDK is a Java SDK.

The current JDK is roughly divided into three major versions:
Java Se:java Platform, Standard Edition,java Platform Standard Edition, mainly used to develop desktop programs
Java Ee:java Platform, Enterprise Edition,java Platform Enterprise Edition, mainly used to develop web programs
Java Me:java Platform, Micro Edition,java Platform mini version, mainly used to develop mobile programs

jdk1.8 installation environment variable configuration tutorial

First, download jdk (http://www.jb51.net/softs/325375.html)

Download decompression package, follow the software prompts step-by-step installation can be.

Second, configure environment variables

1 Configuration Java_home

Configure path, select Path is the JDK under the installation path

2 configuration Classpath

Remember to bring a "." in front of the configuration path to paste directly can: ".; %java_home%\lib;%java_home%\lib\tools.jar "

3 Configuration Path

Immediately after the path is added, preceded by a semicolon, used to separate the original parameters. ";%java_home%\bin;%java_home%\jre\bin"

4 test, see version indicating successful installation

The following is an example of the jdk1.8.0_05 version:

1, in the user variable new variable name: Java_home variable Value: D:\Java\jdk1.8.0_05 (change according to the instance path)
2, in the user variable new variable name: CLASSPATH variable value:.; %java_home%\lib;%java_home%\jre\lib; (transforms according to instance path)
3, in the user variable in the path to modify the value of the variable:.; %java_home%\bin;%java_home%\lib;%java_home%\jre\lib;

Test to see if a successful method is installed:

1, run-->cmd (under admin rights) input: Java-version

2. Write a Hello.java file and put it in D disk.

public class Hello  
{public  
 static void Main (string[] args)  
 {  
 System.out.println ("Hello world! My java! ");  
 }  
}

Enter the current directory of D, write: Javac Hello.java carriage return, and then write: Java Hello if it appears: Hello orld! My java! so you've installed it.

Enterprise Version SDK (with JDK) Download address: http://www.oracle.com/technetwork/java/javaee/downloads/java-ee-7-sdk-with-jdk-u45-2066865.html

After the test installs the Enterprise Edition to be easy to trouble, I am installs jdk1.8 the development version http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

To develop, you need to download it. Windows Server 2008 is also available on the server and is configured as follows:

Note: The installation first installs the Java that applies to your operating system first, the address is as follows: http://www.java.com/zh_CN/download/manual.jsp

The current JDK is roughly divided into three major versions:
Java Se:java Platform, Standard Edition,java Platform Standard Edition, mainly used to develop desktop programs
Java Ee:java Platform, Enterprise Edition,java Platform Enterprise Edition, mainly used to develop web programs
Java Me:java Platform, Micro Edition,java Platform mini version, mainly used to develop mobile programs

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.