Rookie Learn java--First Java program

Source: Internet
Author: User

Beginners to learn Java, but also to understand some of the relevant basic knowledge

Three technology platforms to learn about Java are preferred:

Javase (Java Platform standard Edition), is a solution for developing common desktop and business applications

Java Java Platform Enterprise Edition, is a solution for developing enterprise-class applications.

Javame (Java Platform Micro Edition) Small edition is a solution for the development of electronic consumer products and embedded devices.


Jdk:sun Company provides a set of Java development environment, gradually become JDK (Java Development Kit), including Java compiler, Java Run tool, Java Document Generation tool, Java packaging tools.

The next step: 1, download and install the JDK, this tutorial is the same as the common software, no longer repeat here.

2, configure the PATH environment variable (CLASSPATH environment variable) can not be configured.

Right-click-Computer-Properties-Advanced system settings-environment variables,

Insert the installed JDK directory into the PATH variable

Input path

Open the DOS window, enter the Javac command, the following effect, prove the configuration is successful, or reconfigure

You can then open Notepad with a new one, with the suffix renamed. java

<span style= "FONT-SIZE:18PX;" >class demo{public    static void Main (string[] args) {        System.out.println ("Hello world!");}        } </span>
In DOS, go to the file directory where the program resides

Enter Javac Demo,java (the name of the program to be run) to compile, enter the correct, and then perform the effect

Program Explanation:




Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Rookie Learn java--First Java program

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.