Windows 7 and JOGL2

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Windows 7 and JOGL2

Tiny_Sandwich
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.
Reply | Threaded
Open this post in threaded view
|

Re: Windows 7 and JOGL2

Tiny_Sandwich
The arrows point at the .get and the new, but the formatting did not work out very well when I submitted it.
Reply | Threaded
Open this post in threaded view
|

Re: Windows 7 and JOGL2

gouessej
Administrator
In reply to this post by Tiny_Sandwich
Hi!

Some JARs seem to be missing, especially nativewindow.all.jar
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Windows 7 and JOGL2

Tiny_Sandwich
But the irritating thing is it's not, the nativewindow.all.jar is in the folder.  I even tried extracting it in it's own folder so I could look at it, and the supposedly missing class files are indeed in the jar...  So from the looks of it the compiler is refusing to look at the jar, for some reason.  What could cause that?
 
 
-------Original Message-------
 
Date: 03/03/11 01:55:20
Subject: Re: Windows 7 and JOGL2
 
Hi!

Some JARs seem to be missing, especially nativewindow.all.jar


If you reply to this email, your message will be added to the discussion below:
http://forum.jogamp.org/Windows-7-and-JOGL2-tp2623312p2624014.html
To unsubscribe from Windows 7 and JOGL2, click here.
 
FREE Animations for your email - by IncrediMail! Click Here!
Reply | Threaded
Open this post in threaded view
|

Re: Windows 7 and JOGL2

Wade Walker
Administrator
If you're building in Eclipse, NetBeans, or IntelliJ, we've got tutorials at http://jogamp.org/wiki/index.php/Setting_up_an_JogAmp_project_in_your_favourite_IDE that tell you how to set up your project.

If you're building from the command line, you just need to make sure all the JOGL JARs are given in the command line -cp argument.