installing the JSR231 where?

Hi again!

I am not sure where exactly to install the files from the JSR231 so they are found. It works well if I put the jogl.jar into the \lib\ext and the files from the jogl-natives-win32.jar into the \bin, and have the classpath set to the jogl.jar.

However, the user’s guide says:

[quote]Dropping the JOGL jar and native library into the extension directory of the JRE is strongly discouraged.
[/quote]
and

[quote]If you are developing a new application which uses JOGL, download both jogl.jar and the appropriate native library jar file (for example, jogl-natives-win32.jar). It is recommended to place both of these jar files in the same directory. Modify your CLASSPATH environment variable to include the full path to jogl.jar; for example, “.;C:\Some\Other\Package\foo.jar;C:\Users\myhome\jogl\jogl.jar”. (If you did not previously set the CLASSPATH environment variable, you may want to make sure that “.”, the current directory, is on your new CLASSPATH.) Use the jar command which ships with the JDK to extract the native library jar; e.g., “jar xvf jogl-natives-win32.jar”. Modify your PATH environment variable (Windows), LD_LIBRARY_PATH environment variable (Solaris and Linux), or DYLD_LIBRARY_PATH environment variable (Mac OS X) to contain the directory holding the new .dll, .so or .jnilib files. At this point your Java installation should be able to see the JOGL class files. Users of IDEs such as NetBeans and Eclipse should consult the IDE’s documentation to see how to add jar files and native libraries to their current project.
[/quote]
So I tried it this way and put all files into the same directory outside the J2RE-directory and set the CLASSPATH and PATH variables accordingly. Still my Eclipse tells me that it doesn’t find the javax.media.opengl package anymore, so what is there more to know? Anything inside Eclipse? Any directory substructure inside the JOGL directory where the files are?

Help is as always greatly appreciated! :slight_smile:

Eric

Hi,

You need to specify your external lib (jogl) in your project properties options in Eclipse.