30 July 2009

Eclipse - quick start

1. Download the latest Java SE Development Kit (JDK) from here (JDK 6 Update 14).
2. Download the latest Eclipse IDE for Java EE Developers from here.

How to create a sample Java Project in Eclipse:
1. File -> New -> Java Project
2. Give project name, Use default JRE
3. Navigate -> Show In -> Package Explorer
4. Right click on project src, New -> Class
5. Give Name, Modifier, Create stubs and Comments
6. Run and Debug the code at Run menu
----------------------test.java----------------------
public class test {

public static void main(String[] args) {
System.out.println("Hello world!!!\n");
}

}
-----------------------------------------------------



Reference:
http://java.sun.com/javase/technologies/index.jsp

No comments:

Post a Comment