I'm trying to get JOGL2 build 11 to work in Windows 7. I've been wracking my brain on this for passed couple hours in a feeble attempt at getting this "Hello World" program to function. This is my code...
// from
http://schabby.de/jogl-example-hello-world/import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.media.opengl.GLCapabilities;
import javax.media.opengl.GLProfile;
import javax.media.opengl.awt.GLCanvas;
import javax.swing.JFrame;
public class HelloWorld
{
public static void main(String[] args)
{
// setup OpenGL Version 2
GLProfile profile = GLProfile.get(GLProfile.GL2);
GLCapabilities capabilities = new GLCapabilities(profile);
...
}
}
These are my errors...
HelloWorld.java:17: cannot access javax.media.nativewindow.AbstractGraphicsDevice
class file for javax.media.nativewindow.AbstractGraphicsDevice not found
GLProfile profile = GLProfile.get(GLProfile.GL2);
^
HelloWorld.java:18: cannot access javax.media.nativewindow.Capabilities
class file for javax.media.nativewindow.Capabilities not found
GLCapabilities capabilities = new GLCapabilities(profile);
^
If you can help me solve this issue, I'd be very grateful.