Netbeans/Jruby/Jogl question

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:inloadLibrary0’
from java/lang/System.java:993:in loadLibrary' from com/sun/opengl/impl/NativeLibLoader.java:189:inloadLibraryInternal’
from com/sun/opengl/impl/NativeLibLoader.java:49:in
access$000' from com/sun/opengl/impl/NativeLibLoader.java:80:inloadLibrary’
from com/sun/opengl/impl/NativeLibLoader.java:103:in
loadLibrary' from com/sun/opengl/impl/NativeLibLoader.java:49:inaccess$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

john casu wrote:

I added the jogl (java opengl) plugin to netbeans, and tried to use it
with jruby 1.1.3.

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)

Please note that I built the SimpleJOGL demo just fine, so I’m assuming
that there’s a CLASSPATH issue of some kind.

jogl definitely works with JRuby, but I don’t know how NetBeans wires it
up. My guess is that it doesn’t add it to the classpath for Ruby
projects…NetBeans is still a little week on joint Java/Ruby
development in the same project. I would recommend you report this on
the NetBeans Ruby mailing list, maybe file a bug, and maybe download the
6.5 beta to see if it’s better there. Don’t give up! The NetBeans guys
are looking for reports like this!

  • Charlie

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

john casu wrote:

I added the jogl (java opengl) plugin to netbeans, and tried to use it
with jruby 1.1.3.
[…]

Sorry did not get this. Answered on NetBeans Ruby ML.

m.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email