Could not find the main class????

Problems with Java, jogl, etc?
Post Reply
rafax
Posts: 16
Joined: Sat 17. Apr 2010, 12:39

Could not find the main class????

Post by rafax » Mon 17. May 2010, 20:37

Hello,

I got the following errors, may be someone could help

Code: Select all

Exception in thread "main" java.lang.NoClassDefFoundError: faniry/Hypercube
Caused by: java.lang.ClassNotFoundException: faniry.Hypercube
	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: faniry.Hypercube. Program will exit.
Regards
Faniry

User avatar
gunn
Posts: 323
Joined: Thu 14. Dec 2006, 09:56
Location: TU Berlin
Contact:

Re: Could not find the main class????

Post by gunn » Fri 21. May 2010, 10:28

How are you running jReality? Inside eclipse? or as a stand-alone java application? In the latter case, it appears you may not have set your classpath variable properly -- that's usually what this kind of error message means. But inside eclipse, if your classes properly compile then the classpath is properly set and the application should run.
jReality core developer

Post Reply