First off, thanks for the tutorial. I'm trying to use it to get World Wind Java 1.2.0 compilable in Netbeans 7.1.1. All the steps seem to work, and the code seems to compile (sort of) but I get the following error when I try to run it:

Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Uncompilable source code - Erroneous tree type: <any> at WorldWindNBMain.initComponents( at WorldWindNBMain.<init>( at WorldWindNBMain$ at java.awt.event.InvocationEvent.dispatch( at java.awt.EventQueue.dispatchEventImpl( at java.awt.EventQueue.access$000( at java.awt.EventQueue$ at java.awt.EventQueue$ at Method) at$1.doIntersectionPrivilege( at java.awt.EventQueue.dispatchEvent( at java.awt.EventDispatchThread.pumpOneEventForFilters( at java.awt.EventDispatchThread.pumpEventsForFilter( at java.awt.EventDispatchThread.pumpEventsForHierarchy( at java.awt.EventDispatchThread.pumpEvents( at java.awt.EventDispatchThread.pumpEvents( at BUILD SUCCESSFUL (total time: 7 seconds

I assume this is a runtime error as it seems to compile when I just build instead of run, but I'm not sure. If I go to the offending line 39 at WorldWindNBMain.initComponents( The tip is red and it says: no suitable method found for addComponent(gov.nasa.worldwind.awt.WorldWindowGLCanvas,int,int,short) method javax.swing.GroupLayout.ParallelGroup.addComponent(java.awt.Component,javax.swing.GroupLayout.Alignment,int,int,int) is not applicable (actual and formal argument lists differ in length)

Any idea how to fix this? Looks to me like the construtor needs tweaked possibly. Looks to me like its trying to use (java.awt.Component,javax.swing.GroupLayout.Alignment,int,int,int) instead of (gov.nasa.worldwind.awt.WorldWindowGLCanvas,int,int,short) for the argument list for addComponent. So it seems to be missing the groupLayout alignment parameter possibly (and/or possibly the int vs short difference)?

I'm new to JAVA so my appologies if the problem is obvious.

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo