title: Configure JOGL with maven
body: <p>I'm trying to configure JOGL with maven following the guide found here:
  <a href="http://jogamp.org/wiki/index.php/Maven" rel="nofollow noreferrer">http://jogamp.org/wiki/index.php/Maven</a></p>
  
  <p>As far as I understand should be enough to include these dependencies:</p>
  
  <pre><code>&lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.jogamp.gluegen&lt;/groupId&gt;
        &lt;artifactId&gt;gluegen-rt-main&lt;/artifactId&gt;
        &lt;version&gt;2.3.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.jogamp.jogl&lt;/groupId&gt;
        &lt;artifactId&gt;jogl-all-main&lt;/artifactId&gt;
        &lt;version&gt;2.3.1&lt;/version&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
  </code></pre>
  
  <p>Because they say:</p>
  
  <pre><code>"So, when you add a dependency on jogl-all-main in your own project, the native jar files of jogl-all are brought in as transitive dependencies and everything works as expected."
  </code></pre>
  
  <p>I have create a Maven project including those dependencies and now the project looks like this:
  <a href="https://i.stack.imgur.com/VJdV8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VJdV8.png" alt="enter image description here"></a></p>
  
  <p>I wrote a simple HelloWorld class to test it:</p>
  
  <pre><code>import com.jogamp.opengl.GLCapabilities;
  
      public class HelloWorld {
          public static void main (String args[]) {
              try {
  
  
                  System.loadLibrary("jogl");
                  System.out.println("Hello World! (The native libraries are installed.)");
                  GLCapabilities caps = new GLCapabilities(null);
                  System.out.println("Hello JOGL! (The jar appears to be available.)");
              } catch (Exception e) {
                  System.out.println(e);
              }
          }
      }
  </code></pre>
  
  <p>But running it I get this error:</p>
  
  <pre><code>Exception in thread "main" java.lang.UnsatisfiedLinkError: no jogl in java.library.path
      at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)
      at java.lang.Runtime.loadLibrary0(Runtime.java:849)
      at java.lang.System.loadLibrary(System.java:1088)
      at jogl.HelloWorld.main(HelloWorld.java:12)
  </code></pre>
  
  <p>So it seems the native dll (I'm on windows) are not found.</p>
  
  <p>What is wrong here?
  Is the tutorial wrong, or did I miss something?</p>
  
  <p>This is the pom.xml I'm using:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;jogl&lt;/groupId&gt;
      &lt;artifactId&gt;jogl&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;build&gt;
          &lt;sourceDirectory&gt;src&lt;/sourceDirectory&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.5&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.7&lt;/source&gt;
                      &lt;target&gt;1.7&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.jogamp.gluegen&lt;/groupId&gt;
              &lt;artifactId&gt;gluegen-rt-main&lt;/artifactId&gt;
              &lt;version&gt;2.3.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.jogamp.jogl&lt;/groupId&gt;
              &lt;artifactId&gt;jogl-all-main&lt;/artifactId&gt;
              &lt;version&gt;2.3.1&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>