World Wind Forums

Go Back   World Wind Forums > Support > Technical Support > Install Support

Install Support Have trouble installing World Wind? Post here.

Reply
 
Thread Tools Display Modes
Old 07-18-2012, 01:52 PM   #1
mharris888
Junior Member
 
Join Date: Jul 2012
Posts: 5
mharris888 is on a distinguished road
Default AbstractMethodError using Eclipse IDE

Hello,

I receive the following exception when attempting to run the HelloWorldWind.java file in the package gov.nasa.worldwindx.examples

Code:
Exception in thread "main" java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
	at gov.nasa.worldwind.util.WWXML.createDocumentBuilder(WWXML.java:60)
	at gov.nasa.worldwind.util.WWXML.openDocumentStream(WWXML.java:235)
	at gov.nasa.worldwind.util.WWXML.openDocumentStream(WWXML.java:222)
	at gov.nasa.worldwind.util.WWXML.openDocumentFile(WWXML.java:174)
	at gov.nasa.worldwind.util.WWXML.openDocument(WWXML.java:147)
	at gov.nasa.worldwind.Configuration.loadConfigDoc(Configuration.java:131)
	at gov.nasa.worldwind.Configuration.<init>(Configuration.java:108)
	at gov.nasa.worldwind.Configuration.<clinit>(Configuration.java:76)
	at gov.nasa.worldwindx.examples.HelloWorldWind.main(HelloWorldWind.java:38)
I am using the Eclipse IDE Version: Indigo Service Release 1 Build id: 20110916-0149
JDK point release 1.7.0_05
JRE7

I have checked the following posts:
http://forum.worldwindcentral.com/sh...hlight=eclipse
http://forum.worldwindcentral.com/sh...ad.php?t=32656
( I don't want to switch to netbeans )

Thanks for your help in advance:

M
mharris888 is offline   Reply With Quote
Old 07-21-2012, 09:22 AM   #2
mharris888
Junior Member
 
Join Date: Jul 2012
Posts: 5
mharris888 is on a distinguished road
Default

After a few days of chasing this I have some updates to do. I live in Scotland and the sun is out, so I'm going to have fun instead.

I believe I might have a problem with an incorrect version of jogl for my 64 bit machine that when upgraded to jogl-1.1.0-windows-amd64 throws invalid type errors in the TextRenderer due to the change:

Quote:
TextureRenderer, Overlay and TextRenderer. The TextureRenderer
supports drawing into an OpenGL texture using Java 2D. The Overlay
class provides a convenient Java 2D-based overlay on top of an
arbitrary GLDrawable. The TextRenderer class supports drawing of
Java 2D text into an OpenGL context.
Does anyone know which version of jogl I use for a 64 bit windows machine that is also compatible with Worldwind?

Any help would be appreciated.

Thank you,

M

Last edited by mharris888; 07-21-2012 at 09:56 AM.
mharris888 is offline   Reply With Quote
Old 07-21-2012, 02:52 PM   #3
nlneilson
Super Moderator
 
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,616
nlneilson is on a distinguished road
Default

Welcome to the forum.

You need to use the "Search" function more.
What is required, where to download the 64bit jogl, 64bit java, etc. has been covered several times.

I went back to 32bit as the apps can be run on 32bit and 64bit computers.
Other than a bigger heap space, which you shouldn't need if your code is optimized, what advantage is there to 64bit?

Quote:
Originally Posted by mharris888 View Post
( I don't want to switch to netbeans
Some prefer nb but I do not.
__________________
Neil
http://www.nlneilson.com
nlneilson is offline   Reply With Quote
Old 07-22-2012, 04:04 PM   #4
pabercrombie
WW Dev. Team
 
Join Date: Sep 2010
Location: Boston, MA, USA
Posts: 325
pabercrombie is on a distinguished road
Default

You need JOGL 1.1.1. You can get it here: http://worldwind.arc.nasa.gov/java/jogl/webstart/

If you're on Windows 64, download jogl.jar, jogl-natives-windows-amd64.jar, and gluegen-rt-natives-windows-amd64.jar.
pabercrombie is offline   Reply With Quote
Old 07-23-2012, 05:38 PM   #5
mharris888
Junior Member
 
Join Date: Jul 2012
Posts: 5
mharris888 is on a distinguished road
Default

Thank you for the posts. There were a few errors when importing into Eclipse when solely following the worldwind wiki page. http://www.worldwindcentral.com/wiki/WWJava_in_Eclipse

I do not know if it was a change with Eclipse or a change with the way that WWJ is packaged that has caused it; however I will be happy to write up the steps I went through to install the 64 bit version if you think it is necessary?
mharris888 is offline   Reply With Quote
Old 07-23-2012, 10:22 PM   #6
nlneilson
Super Moderator
 
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,616
nlneilson is on a distinguished road
Default

When I tried 64 bit is all that was required was the 64bit java and the 64bit jogl files to run. In Eclipse I just set the path to those.

If your steps include more than that a write up would help others.

Good you got it sorted out and letting others know.
__________________
Neil
http://www.nlneilson.com
nlneilson is offline   Reply With Quote
Old 07-30-2012, 08:58 AM   #7
mharris888
Junior Member
 
Join Date: Jul 2012
Posts: 5
mharris888 is on a distinguished road
Default

On import I received the AbstractMethodError detailed above until I had removed all but the following jars from the class path under Properties>Java Build Path.

gdal.jar
gluegen-rt-natives-windows-amd64.jar
gluegen-rt.jar
jogl-natives-windows-amd64.jar
jogl.jar
junit.jar
plugin.jar

After using jogl1.1.1 it works fine.
mharris888 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is possible to use World Win SDK with Eclipse RCP? moleyharey Development Help 1 06-30-2010 03:47 AM
How to set breakpoints and debug WWJ in Eclipse? xuqingxin Development Help 4 03-02-2010 11:32 PM
Gray Screen with WWJ in Eclipse nlneilson Development Help 0 11-27-2009 02:14 AM
Eclipse RCP - NoClassDefFound when attempting to use 3rd party plug-in markb_1984 Development Help 1 03-10-2009 09:42 AM
World Wind as Eclipse plugin Unregistered Development Help 24 03-07-2008 07:57 AM


All times are GMT +1. The time now is 01:18 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.