Java Learning (1) Environment setup, hello world demo, hellodemo

Source: Internet
Author: User

Java Learning (1) Environment setup, hello world demo, hellodemo

This program is a front-end developer who occasionally has spare time at work. He may wish to study it. Otherwise, how can he keep his face blank and embark on the peak of his life?

To be honest, every language is connected. With the foundation of javascript and two or three years of experience in dealing with java, it is not very difficult to simply learn java. Okay, you don't have to talk about it. Let's get started!

 

Environment Configuration

First of all, I am a little white. I don't know anything about java.

Jdk

Software Development Kit

Core of java Development

Including the java Runtime Environment, java tools, and java-based Class Libraries

Jre

Runtime Environment, jvm standard implementation and core class library

 

JDK = JRE + development tool set (for example, javac compilation tool)
JRE = JVM + java SE standard class library

(What I see on the Internet seems to be the essence !)

  

Eclipse

Anyway, my friend suggested using myeclipse. I just used it if I didn't make it.

Environment Variable

I will provide a reference connection for this configuration.

Http://www.cnblogs.com/Belieflee/p/4778315.html

 

For now, I know that I want to prepare so many items. I will try again later.

Hello world: what is the beginning of each language?

  

public class HelloWorld {    public static void main(String []args) {        System.out.println("Hello");    }}

  

Command javac: Compile. java into. class

Command java: execute a class (the class name in the java + java file)

 

Use eclipse to run java programs

Open myeclipse

File-> New-> Java Project-> Finish

Open the project and select src

Right-click and choose New> Class.

  

Run: select the java file-> right-click-> Run as-> 1 Java Application

It is about to write a helloworld and then run the following

  

Reference: http://www.runoob.com/java/java-environment-setup.html

The video above provides a good explanation.

 

 

  

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.