jogl setup problem

Hello everybody!

I have problem setting up jogl in my linuxbox. Here is what I have done:

  1. I downloaded both jogl.jar and jogl-natives-linux.jar from the https://jogl.dev.java.net/
  2. I copied the files to /usr/java/jre/lib/ext directory
  3. I extracted the jogl-natives-linux.jar ( with jar xvf )
  4. I changed my classpath environmental variable $CLASSPATH to show to my jogl.jar ( export CLASSPATH=/path/to/jogl.jar )
  5. I changed the $LD_LIBRARY_PATH environmental variables to show to the native libraries

When I try to compile a simple jogl program, say for instance, the following:

import net.java.games.jogl.*;

public class test {
public static void main (String args[]) {
System.out.println(“Hello jogl world\n”);
}
}

I get the following error:

Found 1 semantic error compiling “test.java”:

  1. import net.java.games.jogl.*;
    ^-----------------^
    *** Semantic Error: You need to modify your classpath, sourcepath, bootclasspath, and/or extdirs setup. Jikes could not find package “net.java.games.jogl” in: etc etc

Which means that it can’t find the jogl classes.

Any ideas ?

Thank you all in advance.
P.S. In case this is a rather trivial issue, forgive my ignorance.

Hi,

I think that you should remove point 2 in your process, if you specify your classpath to have jogl.jar in it don’t put this jar into ext directory of your jvm.
Moreover it can raise compatibilty issues with web started applications.

turquioise is correct, please do not copy the jogl.jar into your JRE. The error you’re getting however is because you’re using the old JOGL namespace. The classes are no longer in net.java.games.jogl.* but in javax.media.opengl.*. Please check the javadoc and look at the source code for the JOGL demos for examples.

Guys, I love you!!! :slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile:

Thanx to your advice, I got it working!!! ( after 2 days of tortures )

Innumerable thanx!