I added the jogl (java opengl) plugin to netbeans, and tried to use it
with jruby 1.1.3.
The following is my code:
require ‘java’
class GuiDisplay
def initialize
frame = javax.swing.JFrame.new("Window")
label = javax.swing.JLabel.new("Hello")
canvas = javax.media.opengl.GLCanvas.new()
frame.getContentPane.add(label)
frame.setDefaultCloseOperation(javax.swing.JFrame::EXIT_ON_CLOSE)
frame.pack
frame.setVisible(true)
end
end
I get the following error when I run under netbeans 6.1 and try to
create the canvas object:
java/lang/ClassLoader.java:1753:in loadLibrary': java.lang.UnsatisfiedLinkError: no jogl in java.library.path (NativeException) from java/lang/Runtime.java:822:in
loadLibrary0’
from java/lang/System.java:993:in loadLibrary' from com/sun/opengl/impl/NativeLibLoader.java:189:in
loadLibraryInternal’
from com/sun/opengl/impl/NativeLibLoader.java:49:in
access$000' from com/sun/opengl/impl/NativeLibLoader.java:80:in
loadLibrary’
from com/sun/opengl/impl/NativeLibLoader.java:103:in
loadLibrary' from com/sun/opengl/impl/NativeLibLoader.java:49:in
access$200’
from com/sun/opengl/impl/NativeLibLoader.java:111:in `run’
Please note that I built the SimpleJOGL demo just fine, so I’m assuming
that there’s a CLASSPATH issue of some kind.
Can anyone help me?
Thanks
-john c.
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email