Trying to use a very simple example to get things started, here is the code:
package VectorMath; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ import java.awt.Color; import java.awt.Frame; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import net.java.games.jogl.GLCanvas; import net.java.games.jogl.GLCapabilities; import net.java.games.jogl.GLDrawableFactory; public class VectorMath { public static void main(String[] args){ Frame frame = new Frame("Hello World"); GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities()); frame.add(canvas); frame.setSize(400, 400); frame.setBackground(Color.white); frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } }); frame.show(); } }
Here is the link error it's producing:
run: Exception in thread "main" java.lang.UnsatisfiedLinkError: net.java.games.jogl.impl.JAWTFactory.JAWT_GetAWT0(Ljava/nio/Buffer;)Z at net.java.games.jogl.impl.JAWTFactory.JAWT_GetAWT0(Native Method) at net.java.games.jogl.impl.JAWTFactory.JAWT_GetAWT(JAWTFactory.java:25) at net.java.games.jogl.impl.NativeLibLoader$1.run(NativeLibLoader.java:66) at java.security.AccessController.doPrivileged(Native Method) at net.java.games.jogl.impl.NativeLibLoader.<clinit>(NativeLibLoader.java:46) at net.java.games.jogl.impl.GLContext.<clinit>(GLContext.java:51) at net.java.games.jogl.impl.windows.WindowsGLContextFactory.createGLContext(WindowsGLContextFactory.java:52) at net.java.games.jogl.GLCanvas.<init>(GLCanvas.java:68) at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:117) at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:80) at VectorMath.VectorMath.main(VectorMath.java:20) Java Result: 1 BUILD SUCCESSFUL (total time: 1 second)
Not sure if I'm missing a file or what is going on, can anyone shed some light?
This is coming from the netbeans ide.