Page 1 of 1

CLASSPATH issue (yet again?), MAC OS X 10.6

Posted: Tue 7. Feb 2012, 01:25
by fvogt
Hi everyone,

I installed jReality following the instructions on the website point-to-point ( ... t-tutorial).
All works fine, however, when I try to launch it, I get :

Code: Select all

2012-02-07 $ java jReality.jar 
Exception in thread "main" java.lang.NoClassDefFoundError: jReality/jar
Caused by: java.lang.ClassNotFoundException: jReality.jar
	at Method)
	at java.lang.ClassLoader.loadClass(
	at sun.misc.Launcher$AppClassLoader.loadClass(
	at java.lang.ClassLoader.loadClass(
From what I gathered on the website, this looks like a CLASSPATH issue. I subsequently tried to update CLASSPATH with :

Code: Select all

 export CLASSPATH=$CLASSPATH:\my_path/jr_release/jr/lib/whatever.jar:etc...
But no success. I also tried directly :

Code: Select all

 java -classpath \my_path/jr_release/jr/lib/whatever.jar:etc... jReality.jar 
Still no success. Can't figure out what's wrong - but have the feeling that it might be an obvious mistake ...
MAC OS X 10.6, Java JDK 10.6, java newbie. Any help greatly appreciated.


Re: CLASSPATH issue (yet again?), MAC OS X 10.6

Posted: Wed 8. Feb 2012, 05:52
by fvogt
Problem solved. All it took was installing eclipse - see these instructions : ... p_tutorial

Re: CLASSPATH issue (yet again?), MAC OS X 10.6

Posted: Wed 8. Feb 2012, 10:46
by Andre
Hi fvogt,

welcome to jReality.

If you want to run jReality via terminal you have to unzip the jni-folder for your operating system. This should be the in your case. You have to add these "pre-compiled" libs to your classpath aswell.

Using Eclipse is of course the easier way.

Have Fun