2011年8月29日 星期一

[Java] HelloWorld by Using Eclipse

Step by step:
  1. Get Eclipse: Download Eclipse IDE for Java EE Developers from http://www.eclipse.org/. After downloading, please check its MD5 or SHA1. My downloaded version: Indigo Release.
  2. Setup: Unzip the downloaded file by default. It is a directory and everything is in it. Setup workspace properly.
  3. Create a new project: Select File > New > Java Project. Enter a project name into the Project name field, say "HelloWorld".
  4. Create a new class: Right click HelloWorld project and select New > Class. Enter "HelloWorld" into the Name field.
  5. In editor, write
    public class HelloWorld {
        public static void main(String[] args) {
            System.out.println("Hello World!");
        }
    }
  6. Run and check the console.
Enjoy!

沒有留言:

張貼留言