newbie needs help

hello all, sorry to disturb you with my total noobie question but I’d really like to work with jogl.
I consider myself a good java coder but unfortunately I’ve never worked with external libraries and jar files before.
Now I have some problems compiling and running a simple Jogl example (the one in the introduction thread).I am using jext and a dos window (I don’t like complex coding evironments).
I can compile it fairly easily the problem is that I couldn’t run it as it kept throwing me a noClassDefFound error.
I managed to make it work somehow with the following syntax:

java -cp .;jogl.jar;jogl-natives-win32.jar myClass.java

The problem is that it nows throws me an unsatisfied link error
I’ve put both jogl.jar and jogl-natives-win32.jar in 3 different directories:
[*]c:\jdk1.5.0_01\jre\lib\ext

[*]c:\program files\java\jre1.5.0_01\lib\ext

[*]and finally in the same directory where the java and class files of the test class are located (ultimately I’d like to keep those jogl jar files in this directory only)
What am I doing wrong?
whats the good installation path for windows users?

Thanks in advance

:-[
Okay I found the solution myself, it turned out that I needed to unzip the natives.jar file and put the dlls in a place where they could be reached.I was confused because of the ‘.jar’ file extension.
It’s working now :slight_smile:

Native libraries are in “jar” files because it’s where they are expected to be found when your application is launched by java web start.

Have a look at it, it’s easy to configure and works locally or on the web.

Lilian

Oh ok. That brings more questions :
Must I uncompress the dll files AND also keep the jar somewhere ?
Or can I get rid of it safely? I couldn’t test my code without uncompressing the Dlls ,have I been doing something wrong?
Is java WebStart the best way to distribute a software nowadays?
Or should I use the traditional approach of packages with command files for each OS ?

Thanks