Posted by
Sven Gothel on
Jan 29, 2013; 5:48pm
URL: https://forum.jogamp.org/Help-installing-JOGL-tp3295611p4028048.html
On 01/29/2013 05:58 PM, Penny [via jogamp] wrote:
> Hi,
>
> Although I have been programming Java for years I cant seem to figure out this
> problem...
>
> I have copied all the jar files to "C:\Program Files\Java\jogl"
incl. all the *native* jar files I assume ?
>
> I have set the environment variable CLASSPATH to
>
> .;C:\Program Files\Java\jogl\jar\gluegen.jar;C:\Program
> Files\Java\jogl\jar\gluegen-rt.jar;C:\Program
> Files\Java\jogl\jar\joal.jar;C:\Program
> Files\Java\jogl\jar\jocl.jar;C:\Program Files\Java\jogl\jar\jogl-all.jar;
>
> I can now compile my code using javac.exe
>
> GREAT! :)
>
> My problem is I get the error ClassDefNotFound
pls be more specific (full stderr dump)
>
> I have tried the following command line...
>
> "C:\Program Files\Java\jdk1.7.0_11\bin\javaw.exe" -jar MyProgram.jar
>
> "C:\Program Files\Java\jdk1.7.0_11\bin\javaw.exe" -classpath "C:\Program
> Files\Java\jogl\jar\gluegen-rt.jar;C:\Program
> Files\Java\jogl\jar\jogl-all.jar" -jar MyProgram.jar
should work though .., e.g.:
set CLASSPATH=".;gluegen-rt.jar;jogl-all.jar;"
Maybe it's your start method using the '-jar' notation.
I have to admit I rarely test this.
AFAIK you have to reference the other JAR files
in your manifest, where you name your main-class.
However, 'java -cp YOUR_CLASSPATH my.main.Class"
should work.
>
> Nothing seems to work. I have even tried copying the jars and dlls into the
> bin and lib directories of jre7 and within the jre of jdk but yet still no
> oochachar
don't do that :)
>
> Please advise, many thanks :)
~Sven