View Full Version : worldwind java sdk problem
research4681
05-11-2007, 06:29 AM
I try the worldwind.jar under the release directory,
but it shows that
failed to load Main-class manifest attribute from the worldwind.jar
what's the problem?
thanks
TomServo
05-11-2007, 12:36 PM
Reinstall World Wind...
Actually.. they had some glitches come in and there should be another re-re-release today sometime.
ghchinoy
05-11-2007, 04:09 PM
the current two pre-built, double-clickable jars, worldwind.jar and BasicDemo.jar, have a manifest file that doesn't reference all that's needed to run when double clicked (namely Class-Path and Main-Class). you can still build the source and run worldwinddemos.BasicDemo.
not as easy as double-clicking something, but it is an 0.2 version SDK. it's a relatively easy fix, so hopefully the next ver of the SDK download will have the .jars properly configured.
the current two pre-built, double-clickable jars, worldwind.jar and BasicDemo.jar, have a manifest file that doesn't reference all that's needed to run when double clicked (namely Class-Path and Main-Class). you can still build the source and run worldwinddemos.BasicDemo.
not as easy as double-clicking something, but it is an 0.2 version SDK. it's a relatively easy fix, so hopefully the next ver of the SDK download will have the .jars properly configured.
As of May 11, this is no longer the case. Double-clicking the jar files usually works fine. But that's not the way you should run a World Wind demo. See the FAQ for the correct info.
research4681
05-13-2007, 05:03 AM
thanks for tag's return, now I have new problem, I try to import the project to eclipse, but when I try to run the Awt1up.java as a java application
It shows that
Java run-time version: 1.5.0_02
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
Syntax error, 'for each' statements are only available if source level is 5.0
Can only iterate over an array or an instance of java.lang.Iterable
The type ArrayList is not generic; it cannot be parameterized with arguments <LatLon>
Syntax error, parameterized types are only available if source level is 5.0
The type ArrayList is not generic; it cannot be parameterized with arguments <LatLon>
Syntax error, parameterized types are only available if source level is 5.0
The type List is not generic; it cannot be parameterized with arguments <Renderable>
Syntax error, parameterized types are only available if source level is 5.0
The method parseShapes(String) in the type GeoRSSParser is not applicable for the arguments (Document)
Syntax error, 'for each' statements are only available if source level is 5.0
The type HashMap is not generic; it cannot be parameterized with arguments <TextAttribute, Object>
Syntax error, parameterized types are only available if source level is 5.0
The type HashMap is not generic; it cannot be parameterized with arguments <TextAttribute, Object>
Syntax error, parameterized types are only available if source level is 5.0
at worldwinddemo.AWT1Up$AWT1UpFrame.<init>(AWT1Up.java:63)
at worldwinddemo.AWT1Up.main(AWT1Up.java:30 8)
research4681
05-13-2007, 05:05 AM
I do that following the
http://tleilax.chinoy.com/worldwind/articles/20070510-FirstImpressions.html
withak
05-13-2007, 05:49 AM
Awt1up.java runs fine for me in Eclipse.
research4681
05-13-2007, 09:30 AM
have you install anything with the eclipse?
Those messages seem to say that you're using a pre-5.0 JDK or have done something to prevent the use of 5.0 features. The latter is an available option in some IDEs. Please make sure you're not instructing Eclipse or the JVM to use only pre-5.0 features, or to not use for-each loops.
calhoun
05-14-2007, 03:39 PM
Hi,
Make sure the project settings are set to use JDK 5.0. Right-click on the project in the package explorer, and go to "Properties". Find the "Java Compiler" property on the left side of the panel. Make sure the screen looks like the following and then click Apply.
http://i4.tinypic.com/6gtt4bo.gif
ghchinoy
05-14-2007, 07:30 PM
Also, from Eclipse's Window -> Preferences.. make sure you have a JRE 1.5 or greater checked:
http://i10.tinypic.com/62ivr5u.jpg
research4681
05-15-2007, 01:37 AM
thank you for your help, it's ok now.
EternallyGrateful
08-08-2007, 05:58 PM
I just wanted to thank ghchinoy, i've been googling for a few hours trying to fix this shit, and finally i've fond the missing part of the solution here, i feel so relieved that i just had to post to say thank you! :-P
Amvlf
08-26-2008, 04:14 PM
Awt1up.java runs fine for me in Eclipse. Try in this page and follow the steps carefully http://www.worldwindcentral.com/wiki/WWJava_in_Eclipse
Download the source code from sourceforge.net as they say.
I hope this can help you.
Unregistered
08-19-2010, 10:57 PM
i just thanks calhoun for the post, it helped me a lot...
vBulletin® v3.7.1, Copyright ©2000-2013, Jelsoft Enterprises Ltd.