By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
462,128 Members | 621 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 462,128 IT Pros & Developers. It's quick & easy.

"HelloWorld.java" to run at eclipse

P: 20
Hi all,
I have simple program- "HelloWorld.java" to run at eclipse.
Java Version 1.4.2
Eclipse Version 3.2

Expand|Select|Wrap|Line Numbers
  1. class HelloWorld
  2. {
  3.   public static void main(String[] aa)
  4.  {
  5.    System.out.println("Hello World!!");
  6.    System.out.println("Please Help me, How to run this prog at eclipse.");
  7.  }
  8. }
  9.  
I m new at eclipse. How to configure eclipse to run this program.
Please let me know if anybody has solution of my problem.
thanks.
Feb 5 '08 #1
Share this Question
Share on Google+
4 Replies

10K+
P: 13,262
Hi all,
I have simple program- "HelloWorld.java" to run at eclipse.
Java Version 1.4.2
Eclipse Version 3.2

Expand|Select|Wrap|Line Numbers
  1. class HelloWorld
  2. {
  3.   public static void main(String[] aa)
  4.  {
  5.    System.out.println("Hello World!!");
  6.    System.out.println("Please Help me, How to run this prog at eclipse.");
  7.  }
  8. }
  9.  
I m new at eclipse. How to configure eclipse to run this program.
Please let me know if anybody has solution of my problem.
thanks.
Just create a new project and call it Tests, then right click your project and click new class and give it the name of your class.
Then just make sure the standard Java classes are in the build path of your project.
Feb 5 '08 #2

Expert 10K+
P: 11,448
Did you try to check the help feature and make it search for 'run java' or similar?

kind regards,

Jos
Feb 5 '08 #3

nomad
Expert 100+
P: 664
Hi all,
I have simple program- "HelloWorld.java" to run at eclipse.
Java Version 1.4.2
Eclipse Version 3.2

Expand|Select|Wrap|Line Numbers
  1. class HelloWorld
  2. {
  3. public static void main(String[] aa)
  4. {
  5. System.out.println("Hello World!!");
  6. System.out.println("Please Help me, How to run this prog at eclipse.");
  7. }
  8. }
  9.  
I m new at eclipse. How to configure eclipse to run this program.
Please let me know if anybody has solution of my problem.
thanks.
I'm assuming that you have a Package and a Class set up.
  1. Right click in the Editor window, choose Source from the popup menu and then choose Format. Your code will be reformatted.
  2. In the Package Explorer window, right click the file HelloWorld.java, choose Run As, and then choose Java Application. You will be prompted to save your program. Click OK to save.
  3. The program will execute and a console window at the bottom of the screen will display the output.
nomad
Feb 5 '08 #4

nomad
Expert 100+
P: 664
I'm assuming that you have a Package and a Class set up.
  1. Right click in the Editor window, choose Source from the popup menu and then choose Format. Your code will be reformatted.
  2. In the Package Explorer window, right click the file HelloWorld.java, choose Run As, and then choose Java Application. You will be prompted to save your program. Click OK to save.
  3. The program will execute and a console window at the bottom of the screen will display the output.
nomad
If you goto the Eclipse website they tell you how to do this as well
http://www.eclipse.org/resources/ they even have videos on how to.
Feb 5 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.