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
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
Comment