Step 1:
Go to http://www.eclipse.org/downloads/
Step 2:
Bascially, all java programmer using Eclipse IDE for Java EE Developers , and choose your appropriate Operating System. or you can use other ide.
Step 3:
you must already have the Java SDK installed. Unzip the file and double-click eclipse.exe.
How to write First Java program
How do I write a simple "Hello World" program?
To write a "Hello World" program follow these steps:
Start Eclipse(Inside the unzipped eclipse folder)
Create a new Java Project:
File->New->Project.
Select "Java" in the category list.
Select "Java Project" in the project list. then Click "Next".
Enter a project name into the Project name field, for example, "FirstJava Project".
Click "Finish"
Create a new Java class:
Right click of Project and go to Class then Put name of class. Class name must be start with capital letter
Click the checkbox indicating that you would like Eclipse to create a "public static void main(String[] args)" method.
Click "Finish".
A Java editor for HelloWorld.java will open. In the main method enter the following line.
System.out.println("First Java Program");
Save using ctrl-s. This automatically compiles FirstJava .java.
Click the "Run" button in the toolbar or Ctrl+F11
You will be prompted to create a Launch configuration. Select "Java Application"
Output in console will open and display "FirstJava ".
0 comments:
Post a Comment