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

From CDOT Wiki
Jump to: navigation, search
(Your First Java Program in Eclipse)
(Basic Eclipse in Fedora Linux)
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Your First C Program in Eclipse ==
+
== Basic Eclipse in Fedora Linux ==
[[Image:Screenshot-3.png|left|thumb]]The first thing you have to do is to select the C/C++ perspective. You can do this by clicking the icon pointed to by the red arrow and selecting C/C++.
+
# [[Your First C Program in Fedora Eclipse]]
 
+
# [[Your First Java Program in Fedora Eclipse]]
 
+
# [[Your First Connection to a SVN Repository]]
 
+
# [[Your First JUnit Test Case Run]]
 
+
# [[Using Your Own SVN Repository]]
 
+
# [[Performing Your First Commit]]
 
 
[[Image:Screenshot-4.png|left|thumb]]Your workbench is now configured for C/C++ development.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
[[Image:Screenshot-5.png|left|thumb]]Next select '''File, New, C Project''' from the main menu.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
[[Image:Screenshot-7.png|left|thumb]]Enter the name of your project, '''FirstCProject''', and for the executable type select '''Hello World ANSI C Project''', and then click on the '''Finish''' button.
 
 
 
 
 
 
 
 
 
 
 
 
 
[[Image:Screenshot-8.png|left|thumb]]Notice that you now have a simple Hello World program in the editor window. If you like you may make a small change to the program and save it or you can just leave it as is.
 
 
 
 
 
 
 
 
 
 
 
 
 
[[Image:Screenshot-9.png|left|thumb]]To execute the program select '''Run As''' from the '''Run''' menu. Then select '''Local C/C++ Application'''.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
[[Image:Screenshot-10.png|left|thumb]]The output of your program is displayed in the '''Console''' window at the bottom of the workbench.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
'''Congratulations!''' You've just run your first C program using Eclipse.
 
 
 
== Your First Java Program in Eclipse ==
 
[[Image:j1.png|left|thumb]]First, start by selecting the Java perspective.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
[[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 of your class, '''First''' and check the box '''public static void main(String[] args)''' and then click '''Finish'''.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
[[Image:j9.png|left|thumb]]In the edit view add in your print method as shown.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
[[Image:j10.png|left|thumb]]Your Java program is now complete.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
[[Image: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.
 

Latest revision as of 21:16, 22 January 2011