Java First Lesson: Installing environment variables and implementing Hello World with Notepad

Source: Internet
Author: User

1: Download Java tools

Jdk:java Development Kit (Java Development Essentials)
Jre:java Runtime Environment (Java execution Environment)

The JDK contains the JRE.

2: Install JDK
Set environment variables (can be user variable "self" or system variable "entire"), pointing to the bin directory in the JDK installation directory

By running, enter CMD to open the Command line window "Alt+r", enter java–version, display the Java version information

3: Write the program:

You can use Windows Notepad to write Java programs directly, or you can use advanced text editing tools such as Editplus,ultraedit to write Java programs, and you can use a professional IDE (Integrated development Environment) is written.

The class file is a bytecode file, and the program eventually executes the bytecode (bytecode) file.
Compile command: Java Test.java
Execute command: Java Test (note that there is no. class after Test)

①window---Show view---Navigator (open file); window---show view---console

②window---Show view---Package Explorer (open file)

Java First Lesson: Installing environment variables and implementing Hello World with Notepad

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.