How to install JOGL on Debian

JOGL is an OpenGL binding for Java (wiki) which wraps the C OpenGL API. On Debian-based systems, you might want to use the version from the package manager, and here is how to do so.

First, install it:

1
apt-get install libjogl2-java

Next, you need these JAR files in your build path:

1
2
/usr/share/java/jogl2.jar
/usr/share/java/gluegen2-rt.jar

In Eclipse, this is achieved by clicking Project -> Properties -> Java Build Path -> Libraries -> Add External Jar.

(If you don’t have gluegen2-rt.jar, then you need to install the libgluegen2-rt-java package as well).