- 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.
- Setup: Unzip the downloaded file by default. It is a directory and everything is in it. Setup workspace properly.
- Create a new project: Select File > New > Java Project. Enter a project name into the Project name field, say "HelloWorld".
- Create a new class: Right click HelloWorld project and select New > Class. Enter "HelloWorld" into the Name field.
- In editor, write
public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } }
- Run and check the console.
2011年8月29日 星期一
[Java] HelloWorld by Using Eclipse
Step by step:
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言