Difference between revisions of "Your First Java Program in Fedora Eclipse"

From CDOT Wiki
Jump to: navigation, search
(Created page with '== Your First Java Program in Eclipse == First, start by selecting the Java perspective. left|thumb<br style="clear:left;" /> In the Java perspective select '''…')
 
(No difference)

Latest revision as of 06:41, 19 January 2011

Your First Java Program in Eclipse

First, start by selecting the Java perspective.

J1.png

In the Java perspective select File, New, Java Project.

J3.png

Enter your Java project name, FirstJavaProject and then click Finish.

J4.png

Select File, New, Class.

J6.png

Now enter the name of your class, First and check the box public static void main(String[] args) and then click Finish.

J7.png

In the edit view add in your print method as shown.

J9.png

Your Java program is now complete.

J10.png

Save your program and then select Run, Run As, Java Application.

J12.png

The output of your program is shown in the Console view.

J13.png

Congratulations! You've just run your first Java program using Eclipse.