Java integrated development environment--eclipse for EE configuration JRE Runtime Environment

Source: Internet
Author: User
Tags stub

First, download eclipse for JEE

1. Baidu Search Eclipse for JEE

If the official website download is too slow, here to share the Baidu network disk download

Baidu Network Disk Download:(64-bit)Http://pan.baidu.com/s/1slxsKLv

Second, install Eclipse for JEE

After the download is a. zip format of the compressed package, extracted after the file directory is as follows:

Create a desktop shortcut

Once created, you can see the Eclipse icon on your desktop

Third, configure the operating environment JRE

Window-->preference

Expand Java-->installed JRE

Click Add to add the JRE runtime environment

Click Next

Click Directory.

Click Finish to tick the JRE that you just imported

Click OK to import the JRE's operating environment.

Iv. create a project and write an introductory Hello World 1. Create a project: File-->new-->javaproject

2. Fill in the project name, select the operating environment of the Java program, click Next

3. After clicking Finish, the created project appears as

4. Create a package, class

Note the naming conventions for packages, which come out in new class

Fill in the class name, tick public static void main (string[] args), click Finish to see the following code snippet

Testjre.java

 Package Com.scd.hello;  Public class Testjre {    /**     @param  args     * /     Publicstaticvoid  main (string[] args) {        //  TODO auto-generated method Stub    }}

The entry of the program is inside the main function, filling in the System.out.println ("Hello World");

 PackageCom.scd.hello;ImportJava.io.PrintStream; Public classTestjre {/**     * @paramargs*/     Public Static voidMain (string[] args) {//TODO auto-generated Method StubSystem.out.println ("Hello World"); PrintStream PS=System.out; Ps.println ("HelloWorld"); }}
4. Running the program

Hover your mouse over the code snippet and right-click-->run As-->java Application

View run results in the terminal

Java integrated development environment--eclipse for EE configuration JRE Runtime Environment

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.