J
Jon Harrop
Anyone managed to get JOGL working under AMD64 Debian?
Anyone managed to get JOGL working under AMD64 Debian?
Anyone managed to get JOGL working under AMD64 Debian?
Hunter said:Why do you think we are eager to help someone who abused the group for
advertising?
Tris said:Only with Nvidia video cards and their *sinful* binary drivers. ATI is a
lost cause when it comes to 3-d drivers.
Jon Harrop said:That's fine, we only use nVidia cards anyway. But I'm having a hell of a job
getting JOGL to work. I tried getting the latest builds of JOGL and the
JOGL demos but I got:
$ cd jogl-demos
$ java -cp build/jogl-demos.jar demos.gears.Gears
Exception in thread "main" java.lang.NoClassDefFoundError:
javax/media/opengl/GLEventListener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
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:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
So I tried getting a coherent distribution from the latest stable releases
(jogl-1.1.1-rc3) but I still get the same error. I've tried recompiling the
whole thing from scratch and still get the same error.
Finally, I've scoured the internet to see if anyone else has working
implementations. I found a couple of demos that run under web start. One of
my browsers under (64-bit Debian) Linux handles this and the demo runs but
it is very slow. However, it is layering both Java2D and OpenGL so maybe it
is inherently slow. The same demo on my Windows XP box (same hardware) runs
for a few seconds before hanging.
1. If I want to do high-performance real-time interactive 2D and 3D graphics
and port our OpenGL-based libraries to the Java platform for others to use,
is JOGL the right library for me?
2. How many people actually have a working JOGL development environment, so
they can compile OpenGL applications written in Java?
3. How reliable is JOGL? Is it viable to use JOGL for commercial work or is
it too unstable in practice?
Michael said:This seems to be a classic classpath problem. Probably the basic jogl
jars are not in the system class path, so you would have to specify them
explicitly. Also make sure that the native libs are in the library
path. Otherwise, this is going to be your next problem.
The thing is that you specify "java -cp build/jogl-demos.jar", and I
assume that the proper jogl jars aren't in the demos and they're not in
the system jar folder.
Haven't checked LWJGL, but the two are the only ones to consider as far as
I
can see. You could write some benchmark and compare the two. There were
claims that JOGL is within a single digit performance from C. (I currently
only find a claim to within 15%.)
I can't tell. The featured projects and the list of references to code
suppliers seem to suggest so. I didn't have any stability problems. (I
do have some weird mouse pointer "loss-of-resolution" problems when
opening an
OpenGL window in X11. I haven't come around to checking why this is so.)
Jon Harrop said:Michael Jung wrote:
java -cp ../jogl/build/jogl.jar -cp ../gluegen/build/gluegen-rt.jar -cp
build/jogl-demos.jar demos.gears.Gears
Perhaps the best solution is to set the CLASSPATH environment variable and
give absolute paths to the jar files:
export
CLASSPATH=/home/jdh30/src/jogl/build/jogl.jar:/home/jdh30/src/gluegen/build/gluegen-rt.jar:/home/jdh30/src/jogl-demos/build/jogl-demos.jar
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.