Eclipse New SDK Project

Source: Internet
Author: User

). Set up a working space

Open the first interface that appears Eclipse.exe:

To set up a workspace, we place the workspace directory in D and click "OK".

2). Click on the "Workbench" link in the upper right corner of the workspace to enter the Workbench

Open the Workbench interface

3). Create a Java project

Click File--new--project

The page that pops up is selected "Java Project"

Project name fills in your project name, other options take the default value, click "Finish".

The workbench on the left shows the works that have been built.

4). New Package

Right-click on the "src" package in the project and select "New"-"packages"

There is no special requirement for the package name, which is mainly the specification stipulated in the development.
Here we use the name of this blog: blog.csdn.net.unix21
Click "Finish" to finish.

In the SRC directory, we have just created our new package. It's actually a folder.
For example, the package name blog.csdn.net.unix21, in fact, in the SRC directory to create a folder blog, and in other order to create another folder:

5). New Class

Right-click the package that you just created, New--class, and create a new class.

Fill in the class name, tick the check box (public static void main (string[] args), is to automatically generate the main method, click "Finish" to complete.

The class file has been built.

6). Write code

Add the following code:

[Java]View Plaincopy
    1. System.out.println ("Hello World by http://blog.csdn.net/unix21");


7). Compile Run

Click Run--run on the menu bar to compile the run, or press CTRL+F11 directly

There are many ways to start a program, and eclipse itself has a lot of shortcut buttons.

After the program compiles successfully, output the results in the console window.

Reprint: http://blog.csdn.net/21aspnet/article/details/18815397

Eclipse New SDK Project

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.