Difference between revisions of "Basics : Develop Simple Apps Fedora"

From CDOT Wiki
Jump to: navigation, search
(Basic Eclipse in Fedora Linux)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== Basic Eclipse in Fedora Linux ==
 
== Basic Eclipse in Fedora Linux ==
* [[Your First C Program in Fedora Eclipse]]
+
# [[Your First C Program in Fedora Eclipse]]
* [[Your First Java Program in Fedora Eclipse]]
+
# [[Your First Java Program in Fedora Eclipse]]
 
+
# [[Your First Connection to a SVN Repository]]
 
+
# [[Your First JUnit Test Case Run]]
== Your First Java Program in Eclipse ==
+
# [[Using Your Own SVN Repository]]
First, start by selecting the Java perspective.
+
# [[Performing Your First Commit]]
[[Image:j1.png|left|thumb]]<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;" />
 
 
 
The output of your program is shown in the '''Console''' view.
 
[[Image:j13.png|left|thumb]]<br style="clear:left;" />
 
 
 
'''Congratulations!''' You've just run your first Java program using Eclipse.
 

Latest revision as of 21:16, 22 January 2011