Difference between revisions of "Basics : Develop Simple Apps Fedora"
(→Your First C Program in Eclipse) |
(→Your First Java Program in Eclipse) |
||
Line 59: | Line 59: | ||
== Your First Java Program in Eclipse == | == Your First Java Program in Eclipse == | ||
− | + | [[Image:j1.png|left|thumb]]First, start by selecting the Java perspective. | |
− | [[Image:j1.png|thumb]] | ||
Line 69: | Line 68: | ||
− | |||
− | |||
+ | [[Image:j3.png|left|thumb]]In the Java perspective select '''File''', '''New''', '''Java Project'''. | ||
Line 79: | Line 77: | ||
− | |||
− | |||
+ | [[Image:j4.png|left|thumb]]Enter your Java project name, '''FirstJavaProject''' and then click '''Finish'''. | ||
Line 89: | Line 86: | ||
− | |||
− | |||
+ | [[Image:j6.png|left|thumb]]Select '''File''', '''New''', '''Class'''. | ||
Line 99: | Line 95: | ||
− | |||
− | |||
+ | [[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'''. | ||
− | |||
− | |||
Line 115: | Line 108: | ||
+ | [[Image:j9.png|left|thumb]]In the edit view add in your print method as shown. | ||
− | |||
− | |||
Line 126: | Line 118: | ||
+ | [[Image:j10.png|left|thumb]]Your Java program is now complete. | ||
− | |||
− | |||
Line 137: | Line 128: | ||
+ | [[Image:j12.png|left|thumb]]Save your program and then select '''Run''', '''Run As''', '''Java Application'''. | ||
− | The output of your program is shown in the '''Console''' view. | + | |
− | + | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | [[Image:j13.png|left|thumb]]The output of your program is shown in the '''Console''' view. | ||
Revision as of 19:58, 18 January 2011
Your First C Program in Eclipse
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++.
Congratulations! You've just run your first C program using Eclipse.
Your First Java Program in Eclipse
First, start by selecting the Java perspective.
Congratulations! You've just run your first Java program using Eclipse.