Go to Post Our coolant system consists of a freshman with a squirt bottle. - Holtzman [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-02-2012, 16:05
eileen.diaz eileen.diaz is offline
Registered User
FRC #1872
 
Join Date: Feb 2012
Location: San Juan, Puerto Rico
Posts: 1
eileen.diaz has a spectacular aura abouteileen.diaz has a spectacular aura about
Request for HELP

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
Reply With Quote
  #2   Spotlight this post!  
Unread 07-02-2012, 16:44
nickpeq nickpeq is offline
Turing-complete
FRC #1255 (Blarglefish)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Baytown, TX
Posts: 60
nickpeq is an unknown quantity at this point
Re: Request for HELP

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)
Reply With Quote
  #3   Spotlight this post!  
Unread 08-02-2012, 07:38
derekwhite's Avatar
derekwhite derekwhite is offline
Java Virtual Machine Hacker
no team (FIRST@Oracle)
Team Role: Programmer
 
Join Date: May 2009
Rookie Year: 2009
Location: Burlington, MA
Posts: 127
derekwhite is on a distinguished road
Re: Request for HELP

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.
Reply With Quote
  #4   Spotlight this post!  
Unread 08-02-2012, 09:46
dbeckwith's Avatar
dbeckwith dbeckwith is offline
Lead Programmer
AKA: Daniel Beckwith
FRC #3205 (The Patriots)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: USA
Posts: 84
dbeckwith is an unknown quantity at this point
Re: Request for HELP

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.
__________________
q = (2*b) | ~(2*b);

if (life.getLemons() != null) this.lemonade = new Drink(life.getLemons());
else throw new NoLemonsException("What now?");


Reply With Quote
  #5   Spotlight this post!  
Unread 08-02-2012, 17:29
derekwhite's Avatar
derekwhite derekwhite is offline
Java Virtual Machine Hacker
no team (FIRST@Oracle)
Team Role: Programmer
 
Join Date: May 2009
Rookie Year: 2009
Location: Burlington, MA
Posts: 127
derekwhite is on a distinguished road
Re: Request for HELP

[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.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

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


All times are GMT -5. The time now is 09:57.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi