title: java.lang.NoClassDefFoundError: javax/media/opengl/GLException at processing.opengl.PGraphicsOpenGL
body: <p>I am writing a program in <code>Processing</code> on Raspberrypi(Raspbian), to import a <code>3D STL image</code> file. It is working perfectly on Microsoft (windows7) &amp; Linux(Ubuntu) platform but I am struggling to run same program on Raspberrypi (Raspbian) platform.</p>
  
  <p>I am getting below Error at <code>size(600,600,P3D)</code> when I run this program on Raspberrypi...</p>
  
  <blockquote>
    <p>Coding</p>
  </blockquote>
  
  <pre><code>import toxi.geom.*;
  import toxi.geom.mesh.*;
  import toxi.processing.*;
  TriangleMesh mesh;
  ToxiclibsSupport gfx;
  void setup() {
    size(600,600,P3D);
    mesh=(TriangleMesh)new STLReader().loadBinary(sketchPath("check.stl"),STLReader.TRIANGLEMESH);
    gfx=new ToxiclibsSupport(this);
  }
  
  void draw() {
    background(51);
    lights();
    translate(width/2,height/2,0);
    rotateX(mouseY*0.01);
    rotateY(mouseX*0.01);
    gfx.origin(new Vec3D(),200);
    noStroke();
    gfx.mesh(mesh,false,10);
  }
  </code></pre>
  
  <blockquote>
    <p>Error</p>
  </blockquote>
  
  <pre><code>java.lang.NoClassDefFoundError: javax/media/opengl/GLException
      at processing.opengl.PGraphicsOpenGL.createPGL(PGraphicsOpenGL.java:1744)
      at processing.opengl.PGraphicsOpenGL.&lt;init&gt;(PGraphicsOpenGL.java:518)
      at processing.opengl.PGraphics3D.&lt;init&gt;(PGraphics3D.java:37)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      at processing.core.PApplet.makeGraphics(PApplet.java:1919)
      at processing.core.PApplet.size(PApplet.java:1771)
      at processing.core.PApplet.size(PApplet.java:1742)
      at project5.setup(project5.java:27)
      at processing.core.PApplet.handleDraw(PApplet.java:2361)
      at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:240)
      at processing.core.PApplet.run(PApplet.java:2256)
      at java.lang.Thread.run(Thread.java:724)
  Caused by: java.lang.ClassNotFoundException: javax.media.opengl.GLException
      at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      ... 15 more
  </code></pre>