faqts : Computers : Programming : Languages : Java : IDE Related : Eclipse

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

1 of 1 people (100%) answered Yes
Recently 1 of 1 people (100%) answered Yes

Entry

Java: IDE: Eclipse: Application: How to create a Hello World application in Eclipse?

Apr 19th, 2006 16:53
Knud van Eeden,


----------------------------------------------------------------------
--- Knud van Eeden --- 19 April 2006 - 11:57 pm ----------------------

Java: IDE: Eclipse: Application: How to create a Hello World 
application in Eclipse?

===

Steps: Overview:

 1. -Start the program 'Eclipse'

 2. -Create a new project

     1. -Select from menu option 'File'

     2. -Select from list 'New'

     3. -Select from list 'Project'

     4. -Select from list 'Java Project'

     5. -Click button 'Next'

 3. -Choose a project name

     1. -E.g.

          HelloWorld

 4. -Click button 'Finish'

 5. -Create a class

     1. -Select from menu option 'File'

     2. -Select from list 'New'

     3. -Select from list 'Class'

     4. -Choose a 'name'

         1. -E.g.

              HelloWorld

     5. -Add a 'main' method

         1. -Enable checkbox 'public static void main(String []args)'

     6. -Click button 'Finish'

 6. -Fill the following source code

      System.out.println( "Hello World" );

 7. -That will show a screen output similar to the following:

--- cut here: begin --------------------------------------------------

public class HelloWorld1 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

         System.out.println( "Hello World" );
	}

}
--- cut here: end ----------------------------------------------------

 8. -Run the application

     1. -Select from menu option 'Run'

     2. -Select from list 'Run As'

     3. -Select from list 'Java Application'

     4. -Click button 'OK'

  8. -That will show in one of the windows

--- cut here: begin --------------------------------------------------

 Hello World

--- cut here: end ----------------------------------------------------

===

Tested successfully on
Microsoft Windows XP Professional (service pack 2),
running
Eclipse v3.1.1

===

Internet: see also:

---

Java: IDE: Eclipse: Link: Overview: Can you give an overview of links?
http://www.faqts.com/knowledge_base/view.phtml/aid/40633/fid/1778

----------------------------------------------------------------------