Open main menu

CDOT Wiki β

Changes

Basics : Develop Simple Apps Fedora

705 bytes added, 20:23, 18 January 2011
Your First Java Program in Eclipse
In the Java perspective select '''File''', '''New''', '''Java Project'''. [[Image:j3.png|thumb]]
 
 
 
 
 
 
 
 
Enter your Java project name, '''FirstJavaProject''' and then click '''Finish'''. [[Image:j4.png|thumb]]
 
 
 
 
 
 
 
 
Select '''File''', '''New''', '''Class'''. [[Image:j6.png|thumb]]
 
 
 
 
 
 
 
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|thumb]]
 
 
 
 
 
In the edit view add in your print method as shown. [[Image:j9.png|thumb]]
 
 
 
 
 
Your Java program is now complete. [[Image:j10.png|thumb]]
 
 
 
 
 
 
 
Save your program and then select '''Run''', '''Run As''', '''Java Application'''. [[Image:j12.png|thumb]]
 
 
 
 
 
The output of your program is shown in the '''Console''' view. [[Image:j13.png|thumb]]
63
edits