Issue with running ApplicationTempplate.java
keithm1971 opened this issue · comments
UPDATE: Got SimplestPossibleExample running in Eclipse 12-2019 with Azul Zulu OpenJDK 11 on Windows 10.
After creating the worldwind-v2.2.0 project from the GitHub worldwind-v2.2.0.zip contents.
- Create a worldwind-v2.2.0/src/module-info.java file with the following contents:
module worldwind {
requires java.desktop;
requires java.xml;
requires java.logging;
requires jogl.all;
requires gluegen.rt;
requires gdal;
requires junit;
}
-
Remove xerces_2_5_0.jar + xml-apis.jar + xml-apis-ext.jar files from the Project Properties->Java Build Path->Libraries (Tab)->ClassPath (Table section)
-
Delete worldwind-v2.2.0\lib-external\batik\lib\xerces_2_5_0.jar + xml-apis.jar + xml-apis-ext.jar files from the project workspace folder
-
To run an example application (i.e. worldwind-v2.2.0/src/gov/nasa/worldwindx/examples/SimplestPossibleExample.java) add the following to the Run/Debug Configuration->Arguments (Tab)->VM arguments: (Multiline Text Section):
--add-exports java.base/java.lang=jogl.all --add-exports java.desktop/sun.awt=jogl.all --add-exports java.desktop/sun.java2d=jogl.all
UPDATE: Got past this issue. I managed to figure out the module-info.java and Java build path. Moved on to a jogamp chooseGraphicsConfigurationImpl issue which is probably related to an Eclipse execution command --add-exports argument.
I downloaded the worldwind-v2.2.0.zip and set up a Worldwind Java 2.2 project in Eclipse 12-2019 with Azul Zulu OpenJDK 11 on Windows 10.
When I try to run worldwindx\examples\ApplicationTemplate.java, I get an exception, "Receiver class org.apache.xerces.jaxp.DocumentBuilderFactoryImpl does not define or inherit an implementation of the resolved method 'abstract void setFeature(java.lang.String, boolean)' of the abstract class javax.xml.parsers.DocumentBuilderFactory." at worldwind/gov.nasa.worldwind.util.WWXML.createDocumentBuilder(WWXML.java:83).
Any help figuring out this issue would be appreciated.