java - Example WorldWind application encounters AbstractMethodError when started -


i've been tasked creating application using worldwind api, , familiarize myself api, tried running "helloworldwind" example app. when do, following error stack:

exception in thread "main" java.lang.abstractmethoderror: javax.xml.parsers.documentbuilderfactory.setfeature(ljava/lang/string;z)v     @ gov.nasa.worldwind.util.wwxml.createdocumentbuilder(wwxml.java:61)     @ gov.nasa.worldwind.util.wwxml.opendocumentstream(wwxml.java:236)     @ gov.nasa.worldwind.util.wwxml.opendocumentstream(wwxml.java:223)     @ gov.nasa.worldwind.util.wwxml.opendocumentfile(wwxml.java:175)     @ gov.nasa.worldwind.util.wwxml.opendocument(wwxml.java:148)     @ gov.nasa.worldwind.configuration.loadconfigdoc(configuration.java:131)     @ gov.nasa.worldwind.configuration.<init>(configuration.java:108)     @ gov.nasa.worldwind.configuration.<clinit>(configuration.java:76)     @ gov.nasa.worldwindx.examples.helloworldwind.main(helloworldwind.java: 

wwxml.createdocumentbuilder follows:

public static documentbuilder createdocumentbuilder(boolean isnamespaceaware) {     documentbuilderfactory docbuilderfactory = documentbuilderfactory.newinstance();     docbuilderfactory.setnamespaceaware(isnamespaceaware);     if (configuration.getjavaversion() >= 1.6)     {         try         {             docbuilderfactory.setfeature("http://apache.org/xml/features/nonvalidating/load-external-dtd",                 false);    // not getting past here         }         catch (parserconfigurationexception e)         {   // note , continue on. java5 parsers don't support feature.             string message = logging.getmessage("xml.nonvalidatingnotsupported");             logging.logger().finest(message);         }     }     ... 

reading stuff online, people blaming jogl, since i'm running on 64-bit system, however, have necessary jars in build path. additionally, trying url shown above in browser returns 404 page, makes me think might causethe url way format preferences. since don't have source documentbuilderfactory.setfeature, can't see what's messing in there.

is problem jogl, or else?

this classpath issue of sort. abstractmethoderror thrown when jvm tries invoke abstract method (which not allowed). documentbuilderfactory.setfeature(string, boolean) abstract method added documentbuilderfactory in javase 5, implementations compiled against j2se 1.4.2 version not have method , error occur when setfeature(string, boolean) called on them.

it possible have old xml library on classpath returned instance documetnbuilderfactory.newinstance(). problem may not jogl, per se, may jogl brought in old xml library dependency.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -