|
Re: Java Error: Could not find or load main class <classname> [message #754959 is a reply to message #754954] |
Sat, 05 November 2011 21:01 |
|
On 2011.11.05 14:14, sheffy89 wrote:
> Hi,
>
> I'm new to Java and just downloaded the Eclipse Indigo IDE. I used a
> very basic "hello world" code copied directly from the Eclipse tutorial
> prompt. Every time I try to compile (I think it's called "run" in
> eclipse) I get this message:
>
> "Could not find or load main class test"
>
> (if test is the name of my class)
>
> Any suggestions?
>
> Thanks
If your project compiles cleanly and if you've got a properly defined
main defined in the class and if you right-click the .java file and
choose Run As..., this should work.
I suggest following http://www.vogella.de/articles/Eclipse/article.html
to get oriented in using Eclipse.
|
|
|
Powered by
FUDForum. Page generated in 0.07853 seconds