Log in

View Full Version : Request for HELP


eileen.diaz
07-02-2012, 16:05
We are having difficulties running our code.

We were able to communicate to the Crio and Build the JAVA code, but when we go to run it in Netbeans, we get the following error:

init:
init:
clean:
Created dir: C:\Users\Developer\Documents\NetBeansProjects\Samp leProject\build
Compiling 1 source file to C:\Users\Developer\Documents\NetBeansProjects\Samp leProject\build
compile:
Created dir: C:\Users\Developer\Documents\NetBeansProjects\Samp leProject\j2meclasses
preverify:
Created dir: C:\Users\Developer\Documents\NetBeansProjects\Samp leProject\suite
Building jar: C:\Users\Developer\Documents\NetBeansProjects\Samp leProject\suite\SampleProject_1.0.0.jar
jar-app:
CompilerOracle: exclude com/sun/squawk/Method.getParameterTypes
CompilerOracle: exclude com/sun/squawk/SymbolParser.getSignatureTypeAt
CompilerOracle: exclude com/sun/squawk/SymbolParser.stripMethods
[translating suite image [closed: false, parent: squawk] ...]
### Excluding compile: com.sun.squawk.Method::getParameterTypes
### Excluding compile: com.sun.squawk.SymbolParser::getSignatureTypeAt
[Including resource: META-INF/MANIFEST.MF]
Romizer processed 67 classes and generated 4 files.
Expanding: C:\Users\Developer\Documents\NetBeansProjects\Samp leProject\suite\SampleProject_1.0.0.jar into C:\Users\Developer\Documents\NetBeansProjects\Samp leProject\suite
Moving 1 file to C:\Users\Developer\Documents\NetBeansProjects\Samp leProject\suite
Moving 1 file to C:\Users\Developer\Documents\NetBeansProjects\Samp leProject\suite
Moving 1 file to C:\Users\Developer\Documents\NetBeansProjects\Samp leProject\suite
Deleting: C:\Users\Developer\Documents\NetBeansProjects\Samp leProject\image.suite.api
Host OS: Windows 7 6.1, 6.1
Host JVM: Java HotSpot(TM) Client VM 22.0-b10
Target IP: 10.18.72.2
Network interfaces on host:
Realtek PCIe FE Family Controller: address: 10.18.72.5 netmask: 255.255.255.0 <--- on robot's subnet
Connecting FTP @10.18.72.2
C:\Users\Developer\sunspotfrcsdk\build.xml:96: The following error occurred while executing this line:
C:\Users\Developer\sunspotfrcsdk\ant\upgrade.xml:4 1: Problem: failed to create task or type version
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
BUILD FAILED (total time: 35 seconds)

We called FRC and National Instruments, but they were unable to resolve it. They recommended we post it here on Chief Delphi. Any help is greatly appreciated.

Eileen Diaz
Team 1872

nickpeq
07-02-2012, 16:44
Odd. My first step would be to remove the plugins and reinstall them. (making sure to use the update url so that Netbeans updates the plugin automatically)

derekwhite
08-02-2012, 07:38
There is something going wrong with the "ant" tool, which is used by the deploy process.

One thing that looks odd is that your project name is "Samp leProject". It's possible that the space is throwing things off.

Within NetBeans you can right-click your project and select "Rename...". Check the "Rename Project Folder" option and specify a simpler name. This which will update the project folder and various metadata.

dbeckwith
08-02-2012, 09:46
I'm not sure if this is the problem but if you renamed your main robot class you have to change that name in the MANIFEST.MF file in your project folder as well.

derekwhite
08-02-2012, 17:29
[I think the space-in-the-project-name thing may be a red hering - I've seen that in other peoples posts as well.]

Ant is confused by not finding some support jar files which are part of the NetBeans FRC modules (should be in sunspotfrcsdk/ant/sdktoolftp.jar).

Deleting the FRC modules, restarting NetBeans, re-installing the FRC modules, and restarting NetBeans again should fix the problem.

If it doesn't, check is the NetBeans module install step. Part of this is re-run every time NetBeans starts, so look for the Output tab and post the output here. There may be some error message.