Hello World in IntelliJ and eclipse

Source: Internet
Author: User

1. Hello World under the INTELLIJ environment

1. Start the IntelliJ IDE and select file->new->project

Select Java if the project SDK does not appear, select New,jdk

Select new->jdk-> point to the Java SDK installation folder (typically located in C:\Program Files (x86) \JAVA\JDK (version number))

Select the project folder and project name (Hello World) after selecting next directly (not from template creation)

Select Project->sdk->java 1.8 (version associated with the Java version you installed, if not present-")

After the creation has finished entering the development interface, right click on the Hello_world project name and select New->java Class

Create a new class with any input class name (same as rule and C)

Enter main function and output Hello_world statement

Select the small button next to the Debug triangle in the upper right corner and the Edit Configuration appears

Select + Sign, add application

After selecting application, select main class, and the main classes that you just defined appear

Select the JRE package to select the Java package included with the JDK

Select OK to return to the interface

This time the green triangle becomes available, click on the triangle, the results of the operation appear

2. Hello World in Eclipse


1. Select ecplise Work Path

2. Select File--New->java Project

Configure the compiler to select the JRE in the execution environment JRE or your own installed JDK

Click on the left-most file under the Restore, the Java window appears, select Maximize.

3. Select the Hello_world project name and right-click to select New Package (optional)

4. Create a new class, configure the class name

5. Enter the code after the class is configured, and get the result after execution

Hello World in IntelliJ and eclipse

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.