Page 1 of 1

Could not find the main class????

Posted: Mon 17. May 2010, 20:37
by rafax
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

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

Posted: Fri 21. May 2010, 10:28
by gunn
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.