Changes

Jump to: navigation, search

Basics : Develop Simple Apps Fedora

173 bytes added, 21:55, 18 January 2011
no edit summary
== Your First Java Program in Eclipse ==
First, start by selecting the Java perspective.[[Image:j1.png|left|thumb]]First, start by selecting the Java perspective.<br style="clear:left;" />
In the Java perspective select '''File''', '''New''', '''Java Project'''.
[[Image:j3.png|left|thumb]]<br style="clear:left;" />
Enter your Java project name, '''FirstJavaProject''' and then click '''Finish'''.
[[Image:j4.png|left|thumb]]<br style="clear:left;" />
Select '''File''', '''New''', '''Class'''.
[[Image:j6.png|left|thumb]]<br style="clear:left;" />
Now enter the name of your class, '''First''' and check the box '''public static void main(String[] args)''' and then click '''Finish'''.
[[Image:j7.png|left|thumb]]<br style="clear:left;" />
In the edit view add in your print method as shown.
[[Image:j9.png|left|thumb]]<br style="clear:left;" />
Your Java program is now complete.
[[Image:j10.png|left|thumb]]<br style="clear:left;" />
Save your program and then select '''Run''', '''Run As''', '''Java Application'''.
[[Image:j12.png|left|thumb]]<br style="clear:left;" />
 [[Image:j3.png|left|thumb]]In the Java perspective select '''File''', '''New''', '''Java Project'''.         [[Image:j4.png|left|thumb]]Enter your Java project name, '''FirstJavaProject''' and then click '''Finish'''.         [[Image:j6.png|left|thumb]]Select '''File''', '''New''', '''Class'''.         [[Image:j7.png|left|thumb]]Now enter the name The output of your class, '''First''' and check program is shown in the box '''public static void main(String[] args)''' and then click Console'''Finish'''.        [[Image:j9.png|left|thumb]]In the edit view add in your print method as shown.         [[Image:j10j13.png|left|thumb]]Your Java program is now complete.         [[Image<br style="clear:j12.png|left|thumb]]Save your program and then select '''Run''', '''Run As''', '''Java Application'''.         [[Image:j13.png|left|thumb]]The output of your program is shown in the '''Console''' view.      ;" />
'''Congratulations!''' You've just run your first Java program using Eclipse.
63
edits

Navigation menu