Go to Post A person is not defined by what mistakes they make, but more so by what they do after they realize their mistake. - Andy Baker [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, 17:39
Brobotics12 Brobotics12 is offline
Registered User
FRC #2872
 
Join Date: Oct 2011
Location: New York
Posts: 5
Brobotics12 is an unknown quantity at this point
Question Issue Running Code - Language Not Expected

Hi,

I've recently gotten the cRIO Imaging tool to load the image to the robot, but when I run the BuiltInDefaultCode in Netbeans, it attempts to build the code and I get this output:

init:
init:
No to.jar.file specified.
Using "suite\BuiltInDefaultCode_1.0.0.jar"
clean:
Created dir: C:\Users\CyberCats\Documents\NetBeansProjects\Defa ultCode2\build
Compiling 1 source file to C:\Users\CyberCats\Documents\NetBeansProjects\Defa ultCode2\build
Note: C:\Users\CyberCats\Documents\NetBeansProjects\Defa ultCode2\src\edu\wpi\first\wpilibj\defaultCode\Def aultRobot.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
compile:
Created dir: C:\Users\CyberCats\Documents\NetBeansProjects\Defa ultCode2\j2meclasses
preverify:
Created dir: C:\Users\CyberCats\Documents\NetBeansProjects\Defa ultCode2\suite
Building jar: C:\Users\CyberCats\Documents\NetBeansProjects\Defa ultCode2\suite\BuiltInDefaultCode_1.0.0.jar
jar-app:
Using "suite\BuiltInDefaultCode_1.0.0.jar"
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 100 classes and generated these files:
C:\Users\CyberCats\Documents\NetBeansProjects\Defa ultCode2\image.sym
C:\Users\CyberCats\Documents\NetBeansProjects\Defa ultCode2\image.suite
C:\Users\CyberCats\Documents\NetBeansProjects\Defa ultCode2\image.suite.metadata
C:\Users\CyberCats\Documents\NetBeansProjects\Defa ultCode2\image.suite.api
Expanding: C:\Users\CyberCats\Documents\NetBeansProjects\Defa ultCode2\suite\BuiltInDefaultCode_1.0.0.jar into C:\Users\CyberCats\Documents\NetBeansProjects\Defa ultCode2\suite
Moving 1 file to C:\Users\CyberCats\Documents\NetBeansProjects\Defa ultCode2\suite
Moving 1 file to C:\Users\CyberCats\Documents\NetBeansProjects\Defa ultCode2\suite
Moving 1 file to C:\Users\CyberCats\Documents\NetBeansProjects\Defa ultCode2\suite
Deleting: C:\Users\CyberCats\Documents\NetBeansProjects\Defa ultCode2\image.suite.api
target IP: 10.28.72.2
Network interfaces on host:
Atheros AR8132 PCI-E Fast Ethernet Controller (NDIS 6.20): address: 10.28.72.5 netmask: 255.255.255.255
Realtek RTL8191SE Wireless LAN 802.11n PCI-E NIC: address: 192.168.6.88 netmask: 255.255.255.255
WARNING: Host is not on same subnet as robot. May not be able to complete all communication with robot.
Connecting FTP @10.28.72.2
C:\Users\CyberCats\sunspotfrcsdk\build.xml:95: The following error occurred while executing this line:
C:\Users\CyberCats\sunspotfrcsdk\ant\upgrade.xml:4 0: Expected version Java; for Language but got "Java;". Go to http://first.wpi.edu/FRC/frcjava.html to get latest software update
BUILD FAILED (total time: 9 seconds)

I'm using a wired connection to load the code, so I don't see how the subnet could be an issue. Regardless, how do I change the subnet that NetBeans works on?
And what does the last line mean?" "C:\Users\CyberCats\sunspotfrcsdk\ant\upgrade.xml: 40: Expected version Java; for Language but got "Java;"."

I went to the given site and they only had files for the 2011 competition. Any help would be appreciated. Thank you!
Reply With Quote
  #2   Spotlight this post!  
Unread 08-02-2012, 01:39
TravSatEE's Avatar
TravSatEE TravSatEE is offline
Spacecraft Engineer and more
FRC #2035 (Robo Rockin' Bots)
Team Role: Engineer
 
Join Date: Jan 2012
Rookie Year: 2002
Location: Monterey, CA
Posts: 26
TravSatEE is infamous around these partsTravSatEE is infamous around these parts
Re: Issue Running Code - Language Not Expected

I have never seen this error, but two comments:

- Netbeans plugins URL is http://first.wpi.edu/FRC/java/netbea...te/updates.xml . Make sure you are using the latest.

- Your subnet mask should be 255.255.255.0 or 255.0.0.0 but not 255.255.255.255 . This may be affecting your communications.

Let us know what you change to resolve this error.
Reply With Quote
  #3   Spotlight this post!  
Unread 08-02-2012, 12:53
Brobotics12 Brobotics12 is offline
Registered User
FRC #2872
 
Join Date: Oct 2011
Location: New York
Posts: 5
Brobotics12 is an unknown quantity at this point
Re: Issue Running Code - Language Not Expected

Okay, originally NetBeans was using the update URL: http://updates.netbeans.org/netbeans...catalog.xml.gz

I changed it and downloaded the plugins.

My ethernet connection's subnet mask is 255.255.255.0. I set it in Network properties. I don't know why Netbeans is displaying it as 255.255.255.255.

The other router there is the school's wireless network, I think.

I'll try running the code again and let you know what happens. Thanks for your response.
Reply With Quote
  #4   Spotlight this post!  
Unread 08-02-2012, 16:08
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 592
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Issue Running Code - Language Not Expected

Be sure that when you reimage the cRIO, that you are using the version of the image that goes with the plugins that are installed. This should happen automatically unless you update the plugins after reimaging. The image tool gets the image to install from the plugin distribution. It can also fail if you are imaging with one computer and running netbeans on another computer, each with different versions of plugins.

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #5   Spotlight this post!  
Unread 09-02-2012, 03:10
Patrick Chiang Patrick Chiang is offline
Programming
FRC #3070 (Team Pronto)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Seattle
Posts: 162
Patrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to all
Re: Issue Running Code - Language Not Expected

When you flash the cRIO, you want to make sure that the language option is set to "Java". It defaults to LabView and you need to change that.
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 12:50.

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