Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Java Error: Could not find or load main class <classname>(Java Error)
Java Error: Could not find or load main class <classname> [message #754954] Sat, 05 November 2011 20:14 Go to next message
sheffy89 is currently offline sheffy89
Messages: 1
Registered: November 2011
Junior Member
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
Re: Java Error: Could not find or load main class &lt;classname&gt; [message #754959 is a reply to message #754954] Sat, 05 November 2011 21:01 Go to previous message
Russell Bateman is currently offline Russell Bateman
Messages: 3221
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

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.
Previous Topic:How to start plugin development
Next Topic:UnsupportedOperationException
Goto Forum:
  


Current Time: Thu Oct 23 13:20:28 GMT 2014

Powered by FUDForum. Page generated in 0.03230 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software