vbman11
|
Posted: February 26, 2010 04:04 by vbman11
|
|
I'm new to JOGL and followed this tutorial: http://www.land-of-kain.de/docs/jogl/ but I end up with this error: Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: com/sun/gluegen/runtime/DynamicLookupHelper
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:698)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:315)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:330)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:398)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:698)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:315)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:330)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:398)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at javax.media.opengl.GLDrawableFactory.getFactory(GLDrawableFactory.java:108)
at javax.media.opengl.GLCanvas.chooseGraphicsConfiguration(GLCanvas.java:520)
at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:131)
at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:90)
at Backend.GLBackend.<init>(GLBackend.java:27)
at Frontend.GLScreen.initComponents(GLScreen.java:46)
at Frontend.GLScreen.<init>(GLScreen.java:34)
at Frontend.SongShowRevolution.jMenuItem3ActionPerformed(SongShowRevolution.java:1429)
at Frontend.SongShowRevolution.access$4000(SongShowRevolution.java:41)
at Frontend.SongShowRevolution$40.actionPerformed(SongShowRevolution.java:1119)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:389)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1223)
at com.apple.laf.AquaMenuItemUI.doClick(AquaMenuItemUI.java:137)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1264)
at java.awt.Component.processMouseEvent(Component.java:6348)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3255)
at java.awt.Component.processEvent(Component.java:6113)
at java.awt.Container.processEvent(Container.java:2085)
at java.awt.Component.dispatchEventImpl(Component.java:4714)
at java.awt.Container.dispatchEventImpl(Container.java:2143)
at java.awt.Component.dispatchEvent(Component.java:4544)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4282)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4212)
at java.awt.Container.dispatchEventImpl(Container.java:2129)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4544)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:635)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
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:315)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:330)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:398)
... 64 morethis is the code that I'm trying to test: package Backend;
import com.sun.opengl.util.FPSAnimator;
import javax.media.opengl.DebugGL;
import javax.media.opengl.GL;
import javax.media.opengl.GLAutoDrawable;
import javax.media.opengl.GLCanvas;
import javax.media.opengl.GLCapabilities;
import javax.media.opengl.GLEventListener;
import javax.media.opengl.glu.GLU;
/**
*
* @author kevin
*/
public class GLBackend extends GLCanvas implements GLEventListener {
FPSAnimator animator;
GLU glu;
public GLBackend(int width, int height, GLCapabilities capabilities) {
super(capabilities);
setSize(width, height);
}
public void init(GLAutoDrawable drawable){
GL gl = drawable.getGL();
drawable.setGL(new DebugGL(gl));
// Global settings.
gl.glEnable(GL.GL_DEPTH_TEST);
gl.glDepthFunc(GL.GL_LEQUAL);
gl.glShadeModel(GL.GL_SMOOTH);
gl.glHint(GL.GL_PERSPECTIVE_CORRECTION_HINT, GL.GL_NICEST);
gl.glClearColor(0f, 0f, 0f, 1f);
glu = new GLU();
animator = new FPSAnimator(this, 60);
animator.start();
}
public void display(GLAutoDrawable drawable){
GL gl = drawable.getGL();
// Write triangle.
gl.glColor3f(0.9f, 0.5f, 0.2f);
gl.glBegin(GL.GL_TRIANGLE_FAN);
gl.glVertex3f(-20, -20, 0);
gl.glVertex3f(+20, -20, 0);
gl.glVertex3f(0, 20, 0);
gl.glEnd();
}
public void reshape(GLAutoDrawable drawable, int i, int x, int width, int height){
GL gl = drawable.getGL();
gl.glViewport(0, 0, width, height);
}
public void displayChanged(GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged){
GL gl = drawable.getGL();
setCamera(gl, glu, 100);
}
private void setCamera(GL gl, GLU glu, float distance) {
// Change to projection matrix.
gl.glMatrixMode(GL.GL_PROJECTION);
gl.glLoadIdentity();
// Perspective.
float widthHeightRatio = (float) getWidth() / (float) getHeight();
glu.gluPerspective(45, widthHeightRatio, 1, 1000);
glu.gluLookAt(0, 0, distance, 0, 0, 0, 0, 1, 0);
// Change back to model view matrix.
gl.glMatrixMode(GL.GL_MODELVIEW);
gl.glLoadIdentity();
}
}I add this to a Jframe and get the error above. Anyone have a clue? At the beginning of the tutorial it tells me to add this argument "-Djava.library.path=lib/jogl/your_path" but I don't know what to make "/your_path". |
JOGL Error
Replies: 4 - Last Post: May 09, 2011 03:18
by: dengdai
by: dengdai
showing 1 - 5 of 5
Danwize
|
Posted: March 01, 2010 20:03 by Danwize
|
|
I'm getting the same error whenever I try to run any openGL applications. I've tried similar code to vbMan. I also get this error when I try to run any of the JOGL or Redbook Samples packaged with the JOGL plugin. I'm running win 7 64 bit, and netbeans 6.8. The jdk i'm using is 1.6_18. Dan |
john_brock
|
Posted: March 01, 2010 21:48 by john_brock
|
|
You guys may want to post this over on the JOGL project forums instead of on the General Project Kenai Help forum. I'm sure there will be knowledgeable people over there. The Project Kenai Team |
Eric Heumann
|
Posted: March 02, 2010 19:56 by Eric Heumann
|
| Given the impending change, this is probably a moot point, but I think this reveals a slight flaw in the UI design of Kenai. When a user who is unfamiliar with the site arrives at a project page and looks for a link to the forums, the first thing they probably see is the big pretty FORUMS button over on the left. I remember clicking the HOME button several times when I first got here and wondered why I was sent to the Kenai.com site instead of the project's home page. |
john_brock
|
Posted: March 02, 2010 20:44 by john_brock
|
You're right Eric. It's been one of the usability issues on the list for quite some time. It will be a completely different UI when we get done with everything, so we'll have to see what works better in the end. ![]() --jb |
Replies: 4 - Last Post: May 09, 2011 03:18
by: dengdai
by: dengdai









