Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to run a simple 'Hello World' application in Eclipse?

Status
Not open for further replies.

SashaBuilder3

Programmer
Jan 13, 2002
129
CA
Hi everybody,

I just started learning Java and installed IBM Eclipse Platform. I have a usual for beginners problem: I can't run a simpliest console program. Here it is:

public class cl1
{
public static void main(String[] args)
{
System.out.println("Hello World!");
}
}

Getting an error message when trying to run it: 'Could not find the main class'

I tried different names (the project name is 'pr1', package 'pck1') of the class such as 'pr1' or even 'pck1' but it didn't help.


Can anybody tell me what's going on?


Thanks,

Alexandre
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top