i have been trying to get my hands on jogl and found the tutorial at http://www.cs.umd.edu/~meesh/kmconroy/JOGLTutorial/
i cant compile the first example, the error is mainly the not existence of the packages:
import net.java.games.jogl.GLCanvas;
import net.java.games.jogl.GLCapabilities;
import net.java.games.jogl.GLDrawableFactory;
i have changed them to javax.media.opengl.GLCanvas (after extracting some the jogl jar in an irrelevant directory and skimming it in order to find the GLCanvas class, i found the javax.media.opengl folder hierarchy )but didnt help
also i have changed the CLASSPATH and Path variables acording to the instructions of the UserGuide.html included in the zip i downloaded from the official jogl site…
(that means i hava the C:\Jogl\lib folder with the files and i have added in the CLASSPATH two values the ;C:\Jogl\lib\gluegen-rt.jar;C:\Jogl\lib\jogl.jar without any ,.; or something at the end and in the Path variable (not PATH if it makes any difference) i added one value ;C:\Jogl\lib without any ,.; in the end)
i have to mention that the jogl demos from the official site fail to launch as well… (https://jogl-demos.dev.java.net/ the message is “Unable to launch application” i clicked on details a two tabbed frame appeared, the first was named Launch File and the content was
<?xml version="1.0" encoding="utf-8"?>
JOGL Gears Demo
Sun Microsystems, Inc.
Gears Demo
Brian Paul’s Gears demo ported to Java and JOGL.
<resources>
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.4+"/>
<property name="sun.java2d.noddraw" value="true"/>
<jar href="jogl-demos.jar" main="true"/>
<jar href="jogl-demos-util.jar" />
<extension name="jogl-all-awt" href="http://download.java.net/media/jogl/jsr-231-2.x-webstart/jogl-all-awt.jnlp" />
</resources>
and the second was named Exception and the content was
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoSuchMethodError: com.sun.gluegen.runtime.BufferFactory.nativeOrder(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
at com.sun.nativewindow.impl.jawt.JAWT.GetDrawingSurface(JAWT.java:54)
at com.sun.nativewindow.impl.jawt.windows.WindowsJAWTWindow.lockSurface(WindowsJAWTWindow.java:69)
at com.sun.opengl.impl.GLDrawableImpl.lockSurface(GLDrawableImpl.java:130)
at com.sun.opengl.impl.windows.wgl.WindowsWGLDrawable.setRealized(WindowsWGLDrawable.java:70)
at javax.media.opengl.awt.GLCanvas.addNotify(GLCanvas.java:413)
at java.awt.Container.addNotify(Unknown Source)
at java.awt.Window.addNotify(Unknown Source)
at java.awt.Frame.addNotify(Unknown Source)
at java.awt.Window.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at java.awt.Window.setVisible(Unknown Source)
at demos.gears.Gears.main(Gears.java:51)
… 9 more
)
any help will be appreciated