Hello everybody!
I have problem setting up jogl in my linuxbox. Here is what I have done:
- I downloaded both jogl.jar and jogl-natives-linux.jar from the https://jogl.dev.java.net/
- I copied the files to /usr/java/jre/lib/ext directory
- I extracted the jogl-natives-linux.jar ( with jar xvf )
- I changed my classpath environmental variable $CLASSPATH to show to my jogl.jar ( export CLASSPATH=/path/to/jogl.jar )
- 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”:
- 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.