473,386 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

"HelloWorld.java" to run at eclipse

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
4 2679
r035198x
13,262 8TB
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
JosAH
11,448 Expert 8TB
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
664 Expert 512MB
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
664 Expert 512MB
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

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

Similar topics

0
by: Phillip Montgomery | last post by:
Hello all; I'm trying to debug an issue with a java script called, SelectSockets. It appears to be a fairly common one found on the web. I downloaded the SGI Java v1.4.1 installation from SGI's...
1
by: Andy Howells | last post by:
Can anybody help me on this? I am getting the below error but have not got a clue why. The file in my classpath eing used has the class that it says is not defined. Any ideas? I am running java...
0
by: asj | last post by:
luke: BORRRRRRRRING......the most interesting initiatives are happening on the client side - in small wireless devices such as cellphones and smartphones, where J2ME has become the de facto...
0
by: Stacey | last post by:
I hate to start the email with the "I'm new to this clause", but there it is. I am understanding how the xsd files work and how the castor SourceGenerator works. What I am not understanding is...
14
by: mlw | last post by:
Do not take anything about this, it is not a flame or troll, while I'm not new to Java I favor C++. However, I may need to use it in a contract position, and am concerned that the restrictions it...
6
by: nrperry | last post by:
Hello, I have a question about this error: Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -2 I am doing my java development in IBM Rationale...
11
by: hamiltongreg | last post by:
I am new to Java and am having problems getting my program to compile correctly. My assignment is as follows; Choose a product that lends itself to an inventory (for example, products at your...
4
by: jmitch89 | last post by:
I don't why I get this error: Exception in thread "main" java.lang.NoClassDefFoundError The statement below works just fine: java -cp...
3
by: ohadr | last post by:
hi, i get Exception in thread "main" java.lang.NullPointerException when i run my application. the exact error is: "Exception in thread "main" java.lang.NullPointerException at...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.