You are not logged in.

#1 2010-01-02 16:02:56

katzen
Member
From: London
Registered: 2008-03-18
Posts: 88

Eclipse newbie question

I just installed eclipse with openjdk6.
When I try to run something, even the most basic hello world thing, I get this:

Exception in thread "main" java.lang.NoClassDefFoundError: 
Caused by: java.lang.ClassNotFoundException: 
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
Could not find the main class: . Program will exit.

I need to work on eclipse for my school and this is really driving me mad. does someone has a solution?

Offline

#2 2010-01-03 16:00:01

hBd
Member
From: Romania - Cluj Napoca
Registered: 2008-06-08
Posts: 241
Website

Re: Eclipse newbie question

i think u should post your code to.

Offline

#3 2010-01-03 17:54:26

h_al
Member
Registered: 2009-12-30
Posts: 17

Re: Eclipse newbie question

No class found exception. What are you trying to do? Paste your code.

Offline

#4 2010-01-03 21:12:31

Kazuma
Member
Registered: 2010-01-03
Posts: 5

Re: Eclipse newbie question

Are you sure your program is correct logically, mathematically, and in syntax? Try running your files in terminal so eclipse isn't a factor. I'm sorry I can't help any more than that. I use Netbeans from the community res with the official JDK.

Offline

#5 2010-01-03 21:54:16

shpelda
Member
Registered: 2008-08-07
Posts: 59

Re: Eclipse newbie question

This seems like invalid "run" configuration. You have most propably specified that your main class is named ".".

Offline

Board footer

Powered by FluxBB