Download NetBeans!

20070529 Tuesday May 29, 2007

NASA World Wind on the NetBeans Platform

One of the few remaining questions in my life has been solved... I have finally managed to put the NASA World Wind globe into the NetBeans Platform:

The reason why it didn't work before was that if the 'ide7' cluster is enabled, an NPE is thrown in this case. Fabrizio Giudici, who has integrated World Wind into his blueMarine project sometime ago (click here to see it in action), was the one who provided me with the missing piece of this puzzle. I asked him to try to work out what my problem was, since he didn't have that problem in his application. He wrote today with, amongst others, these words:

Ten minutes ago I figured it out! blueMarine has all the platform clusters disable but "platform6": going by trial and error, I discovered that if "ide7" is enabled, the NPE is generated (on all platforms, Mac included)... looks like it prevents the loading of the dynamic libraries of JOGL.

Thanks Fabrizio! What this means, unfortunately, is that one cannot install a module containing World Wind into NetBeans IDE, because there 'ide7' must always be enabled. It's a very strange situation, but at least it is good to know that I can now integrate the cool World Wind functionality into a (non NetBeans IDE centric) NetBeans Platform application!

May 29 2007, 10:43:45 AM PDT Permalink

Trackback URL: http://blogs.sun.com/geertjan/entry/nasa_world_wind_on_the
Comments:

Wow, getting Geertjan's praise is soo cool... :-) BTW, since 'ide7' has several modules inside, one should try all of them until he founds the culprit... In the end I think it's a bug, or maybe once one finds out what the problem is, a workaround can be applied...

Posted by Fabrizio Giudici on May 29, 2007 at 10:55 AM PDT #

WorldWind is very cool stuff. I used it to demo the Beans Binding and Swing Application Frameworks, substituting a mountains database for the usual Car db and it was pretty impressive (Well, I thought so :).

The only "trick" necessary was subclassing WorldWindowGLCanvas to add latitude and longitude accessors and translate PositionEvents to PropertyChangeEvents.

Posted by Rafael de F. Ferreira on May 29, 2007 at 02:25 PM PDT #

Wow, so cool!!

Posted by autooo on May 31, 2007 at 11:20 AM PDT #

Please could you write down how to include the jogl, gluegen and worldwind jars. I tried to wrap them, but running the netbeans-based application always throws exceptions about error reading multifile, no gluegen-rt in java.library.path. How to set the java.library.path in a netbeans platform-based application?

Thanks

Posted by 84.1.205.77 on September 21, 2007 at 08:55 AM PDT #

Hi Greetjan, I'm having the following error when I tried to run the demo:
java.lang.UnsatisfiedLinkError: no jogl in java.library.path
Am I missing something?
THanks,
Wadi

Posted by Wadi on September 27, 2007 at 02:01 PM PDT #

Wadi, I know how to solve it: just create a folder release/modules/lib under the jogl module, and copy the jogl related .so and .dll files from the worldwind zip. Do the same for gluegen, and it will work. However the jogl panel is always above the menus, so I can't choose some menu items, unless I close the worldwind window. Do somebody know the solution for this?

Andras

Posted by 84.1.202.55 on September 30, 2007 at 09:22 AM PDT #

Thanks Andras! I solved the problem. The thing is that now I get a open gl exception as follows:

avax.media.opengl.GLException: Method "glActiveTexture" not available

May be related with windows 2003 server?Am I missing something?,
Thanks in advance,
Wadi

Posted by Wadi on October 30, 2007 at 11:27 AM PDT #

Hi. I'm trying to fix the same issue of java.lang.UnsatisfiedLinkError: no jogl in java.library.path. What do you mean by "under the jogl module"? I'm new to Java, and I'm not sure where this is. I am using NetBeans, which generated a dist folder with my jars and libraries. My app is working fine on the server through the cmd line, but via the web I'm getting the error above.

Posted by Tara on February 25, 2008 at 12:29 PM PST #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed