Could not find the main class????

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

Could not find the main class????

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


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 Method)
	at java.lang.ClassLoader.loadClass(
	at sun.misc.Launcher$AppClassLoader.loadClass(
	at java.lang.ClassLoader.loadClass(
	at java.lang.ClassLoader.loadClassInternal(
Could not find the main class: faniry.Hypercube. Program will exit.

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

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