We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › OPENGL DOESNT WORK ..
Page Index Toggle Pages: 1
OPENGL DOESNT WORK .. (Read 687 times)
OPENGL DOESNT WORK ..
Dec 23rd, 2008, 3:37am
 
Im using netbeans, also opengl.jar and jogl.jar are imported ...


whats wrong??

package dimenciontest;
import processing.core.*;
import processing.opengl.*;

public class Main extends PApplet {

   public Main() {
   }

   public static void main(String[] args) {

  PApplet.main( new String[]{"dimenciontest.Main"} );
   }

  float a;

   @Override
 public  void setup() {
   size(640, 480, OPENGL); // Change size to 320 x 240 if too slow at 640 x 480



}
 
  @Override
public void draw() {

  }


and i get the following error :



java.lang.NoClassDefFoundError: com/sun/gluegen/runtime/DynamicLookupHelper
       at processing.opengl.PGraphicsOpenGL.<init>(PGraphicsOpenGL.java:111)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorI
mpl.java:39)
       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorA
ccessorImpl.java:27)
       at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
       at processing.core.PApplet.makeGraphics(PApplet.java:1143)
       at processing.core.PApplet.size(PApplet.java:982)
       at processing.core.PApplet.size(PApplet.java:942)
       at dimenciontest.Main.setup(Main.java:28)
       at processing.core.PApplet.handleDraw(PApplet.java:1383)
       at processing.core.PApplet.run(PApplet.java:1311)
       at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: com.sun.gluegen.runtime.DynamicLookupHelper
       at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
       ... 12 more
Exception in thread "Animation Thread" java.lang.RuntimeException: com/sun/gluegen/runtime/DynamicLookupHelper
       at processing.core.PApplet.makeGraphics(PApplet.java:1168)
       at processing.core.PApplet.size(PApplet.java:982)
       at processing.core.PApplet.size(PApplet.java:942)
       at dimenciontest.Main.setup(Main.java:28)
       at processing.core.PApplet.handleDraw(PApplet.java:1383)
       at processing.core.PApplet.run(PApplet.java:1311)
       at java.lang.Thread.run(Thread.java:619)

Re: OPENGL DOESNT WORK ..
Reply #1 - Feb 13th, 2009, 11:40pm
 
add gluegen-rt.jar to your build path
Page Index Toggle Pages: 1