Results 1 to 3 of 3

Thread: Offline MilStd2525-symbols.zip

  1. #1
    Unregistered
    Guest

    Default Offline MilStd2525-symbols.zip

    I'm trying to get worldwind to display MilStd2525 symbols from a local zip archive. I'm very new to worldwinds and java so bear with me..

    I opened the worldwind.jar file in winzip and added the following line to config/worldwind.xml.

    <Property value="jar:file:milstd2525-symbols.zip!" name="gov.nasa.worldwind.avkey.MilStd252 5IconRetrieverPath"/>

    I then added the milstd2525-symbols.zip to the root of the jar file, next to the com, config, gov, META-INF, etc. folders.

    When I try to launch my app, I'm getting the following exception. Any idea what I'm doing wrong??

    Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
    at gov.nasa.worldwind.Configuration.<init>( Unknown Source)
    at gov.nasa.worldwind.Configuration.<clinit >(Unknown Source)
    at gov.nasa.worldwind.WorldWind.createConfi gurationComponent(Unknown Source)
    at gov.nasa.worldwind.WorldWind.initialize( Unknown Source)
    at gov.nasa.worldwind.WorldWind.<init>(Unkn own Source)
    at gov.nasa.worldwind.WorldWind.<clinit>(Un known Source)
    at gov.nasa.worldwind.awt.WorldWindowGLCanv as.<init>(Unknown Source)
    at TestMap.Map.<init>(Map.java:18)
    at TestMap.TestMap.<init>(TestMap.java:45)
    at TestMap.TestMap$1.run(TestMap.java:20)
    at java.awt.event.InvocationEvent.dispatch( Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Un known Source)
    at java.awt.EventQueue.access$000(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.security.AccessController.doPrivile ged(Native Method)
    at java.security.ProtectionDomain$1.doInter sectionPrivilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknow n Source)
    at java.awt.EventDispatchThread.pumpOneEven tForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsF orFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsF orHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents( Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents( Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: java.lang.NullPointerException
    at gov.nasa.worldwind.Configuration.getStri ngValue(Unknown Source)
    at gov.nasa.worldwind.Configuration.getInte gerValue(Unknown Source)
    at gov.nasa.worldwind.Configuration.getInte gerValue(Unknown Source)
    at gov.nasa.worldwind.util.Logging.<clinit> (Unknown Source)
    ... 24 more

  2. #2
    Super Moderator
    Join Date
    Nov 2006
    Location
    Mojave & Oxnard California
    Posts
    2,880

    Default

    It's a bit more involved than that.

    Try the similar examples that are in the SDK.

    You will probably need to unzip the symbols.

    In Win placing stuff in the root of the jar file may work but in many Linux OSs it may not.

  3. #3
    World Wind Developer
    Join Date
    Sep 2010
    Location
    Santa Barbara, CA
    Posts
    327

    Default

    That error indicates that there's something wrong with your config file. But it sounds like you're doing more work than you need to. You do not need to extract the contents of the symbol jar, and you do not need to unpack wordwind.jar. Here's what you want to do:

    1) Download milstd2525-symbols.zip and place it in the same directory as worldwind.jar.
    2) Copy the default worldwind.xml from ww-download-dir/src/config to your-app-working-dir/config/worldwind.xml.
    3) Set the location of the symbols in worldwind.xml:
    Code:
    <Property name="gov.nasa.worldwind.avkey.MilStd2525IconRetrieverPath" value="jar:file:milstd2525-symbols.zip!"/>
    By default, World Wind attempts to load the configuration file from config/worldwind.xml. You can tell WW to use a different file by setting the gov.nasa.worldwind.config.file parameter when you start your application (i.e. -Dgov.nasa.worldwind.config.file=/path/to/worldwind.xml). I would recommend keeping a configuration file external to worldwind.jar instead of modifying the file inside of the jar.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Running offline
    By Unregistered in forum Development Help
    Replies: 22
    Last Post: 01-31-2013, 01:11 PM
  2. WWC# offline mode
    By lukin4that in forum Developers' Corner
    Replies: 1
    Last Post: 04-08-2012, 06:26 PM
  3. Does SRTM data work Offline?
    By James_In_Utah in forum WorldWind General
    Replies: 4
    Last Post: 02-06-2007, 02:34 AM
  4. USING WORLDWIND OFFLINE WITHOUT INTERNET
    By blueocean in forum Technical Support
    Replies: 3
    Last Post: 11-04-2005, 09:43 PM
  5. Opening World Wind offline
    By aussiemac in forum Technical Support
    Replies: 5
    Last Post: 01-10-2005, 10:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •