X

Geertjan's Blog

  • May 29, 2007

NASA World Wind on the NetBeans Platform

Geertjan Wielenga
Product Manager
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!

Join the discussion

Comments ( 10 )
  • Fabrizio Giudici Tuesday, May 29, 2007
    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...
  • Rafael de F. Ferreira Tuesday, May 29, 2007

    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.


  • autooo Thursday, May 31, 2007
    Wow, so cool!!
  • guest Friday, September 21, 2007

    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


  • Wadi Thursday, September 27, 2007

    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


  • guest Sunday, September 30, 2007

    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


  • Wadi Tuesday, October 30, 2007

    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


  • Tara Monday, February 25, 2008

    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.


  • guest Thursday, March 28, 2013

    Hi,

    I've been trying to get this to work with netbeans 7.3/worldwind 2 SDK, but get an "IllegalStateException" at runtime when I try to display the world wind globe in a netbeans platform editor window.

    My netbeans project has a wrapper library for the worldwind.jar and another for the gluegen-rt.jar and jogl-all.jar files that shipped with world wind. The basic world wind demo runs fine on my PC, so the graphics drivers aren't an issue.

    Would you have the time to produce an article covering the basic steps for getting world wind to work with the latest Netbeans. I've been looking for examples but haven't found one that really helps and includes step by step diagrams.

    Thanks

    Andrew


  • Geertjan Thursday, March 28, 2013
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.