Posted by
junk on
Sep 29, 2010; 4:26pm
URL: https://forum.jogamp.org/New-User-Installation-Help-Vista-64-on-AMD-64-tp1603259.html
Hi. I'm a new user/student trying to get started with JOGL.
I downloaded [jogl-2.0-pre-20100928-windows-amd64.zip], the most recent JOGL file that I saw, and unzipped the contents into [C:\Program Files\Java\jogl-2.0].
I then setup my environment variables as follows. For my PATH user variable, I have [other_PATH_stuff;C:\Program Files\Java\jogl-2.0\lib;]. For my CLASSPATH system variable, I have [other_CLASSPATH_stuff;C:\Program Files\Java\jogl-2.0\lib\jogl.all.jar;C:\Program Files\Java\jogl-2.0\lib\nativewindow.all.jar;C:\Program Files\Java\jogl-2.0\lib\gluegen-rt.jar;C:\Program Files\Java\jogl-2.0\lib\newt.all.jar;].
I then try to compile a JOGL test window, taken from Justin's
JOGL tutorial 2 page. For convenience, the following is the code I'm trying to compile and run:
import java.awt.Frame;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.media.opengl.*;
import javax.media.opengl.awt.GLCanvas;
public class SimpleScene {
public static void main(String[] args) {
GLProfile.initSingleton();
GLProfile glp = GLProfile.getDefault();
GLCapabilities caps = new GLCapabilities(glp);
GLCanvas canvas = new GLCanvas(caps);
Frame frame = new Frame("AWT Window Test");
frame.setSize(300, 300);
frame.add(canvas);
frame.setVisible(true);
// by default, an AWT Frame doesn't do anything when you click
// the close button; this bit of code will terminate the program when
// the window is asked to close
frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});
}
}
From cmd.exe, here is my attempt at compiling the above code:
SomePath\HelloJOGL>javac SimpleScene.java
SimpleScene.java:12: cannot find symbol
symbol : constructor GLCapabilities(javax.media.opengl.GLProfile)
location: class javax.media.opengl.GLCapabilities
GLCapabilities caps = new GLCapabilities(glp);
^
1 error
SomePath\ProgrammingJournal\HelloJOGL>
It looks like Java is finding some stuff ([GLProfile]), but not others ([GLCapabilities]). I'm also not sure what functionality is removed by the various profiles. Could this be affecting the usage of [GLCapabilities]? Any help is appreciated.