JDK download installation configuration, write the first Java program

Source: Internet
Author: User

What is a JDK?

A) JDK full name Java Development Kit Chinese Developer kit

b) JDK includes the JRE (Java Runtime Environment) Java Runtime Environment, a stack of Java tools, and a Java-based class library

Tools for Java:

java compiler: Javac.exe

Java Interpreter executor: Java.exe

1.JDK Download: Go to the official website download page, the URL is as follows:

Http://www.oracle.com/technetwork/cn/java/javase/downloads/jdk8-downloads-2133151-zhs.html

2. You must click Accept License agreement to download, select download according to system type

3. Next is to install the JDK, double-click the downloaded EXE file

4. Then install the JRE

5. Installation Complete

6. Configure Environment variables

Right-click Computer, properties, advanced system settings, environment variables, click the path variable, case-insensitive, no new

Copy the bin path of the JDK into the path variable

All Click OK

7. Check if the configuration is successful: windows+r open a command prompt, enter Java, enter Javac, and the following interface shows the configuration is successful.

8. Write the first Java program Hello world!

Create a new Notepad file

Change the prefix name to Java

Open with editor, write code:

public class Hello

{

public static void Main (String args[])

{

System.out.println ("Hello world!");

}

}

9. Compile: Go to the console, switch to the folder where the file is located, enter: Javac Hello.java

10. Execute, enter Java Hello

JDK download installation configuration, write the first Java program

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.