Java's Hello world!

Source: Internet
Author: User

1 Introduction to Java language features

Unlike compiling this low-level computer programming language, Java, as a high-level programming language, requires a running environment, and the Java runtime is the JRE (Java runtime enviroment) just running Java programs. The JRE is enough. Java is the most important thing in the JRE Java Virtual machine, virtual machine is Java's soul ah Java to cross-platform, once compiled, everywhere, it is done by it. Now the language running on the JVM is not just Java Groovy,scala,ko Tlin and other visible JVMs are excellent, and the JVM's in-depth study is that we learned the basics of Java to get the EE version before we go back to the study.

The JDK (Java Development Kit) Development Kit is required for development.

2 JDK Download and installation

Official website: http://www.oracle.com/technetwork/java/javase/downloads/index.html download the corresponding system and the number of digits can be, one-click installation.

3 Configuration of environment variables

Computer Right-click Properties Advanced System Settings

Environment variables

The variable value of the new java_home in the system variable is the JDK installation directory

The new CLASSPATH value is. " JDK installation directory \lib. " The JAVA class library (content under the Lib folder) can be accessed under any path%java_home% is a reference to the JAVA_HOME system variable you just configured, and F:\Java is also available here.

Finally, the modification of an existing environment variable named path adds a value to the JDK installation path \ Bin

If it is Win7 or the previous Windows system, remember to separate the English semicolon from the previous variable name.

After the configuration, test it.

Win+r cmd into the command line

Type Javac

This interface is available.

4 Hello World Applet

Below hit a Java Hello World program file named Hello.java saved on the desktop

 Public class hello{    publicstaticvoid  main (string[] args) {        System.out.println ( "Hello World");}    }
View Code

  

Video Version Link: https://www.bilibili.com/video/av12299042/

Java's Hello world!

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.