Log in

View Full Version : Issue Running Code - Language Not Expected


Brobotics12
07-02-2012, 17:39
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:4 0: 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!

TravSatEE
08-02-2012, 01:39
I have never seen this error, but two comments:

- Netbeans plugins URL is http://first.wpi.edu/FRC/java/netbeans/update/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.

Brobotics12
08-02-2012, 12:53
Okay, originally NetBeans was using the update URL: http://updates.netbeans.org/netbeans/updates/6.9/uc/final/stable/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.

BradAMiller
08-02-2012, 16:08
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

Patrick Chiang
09-02-2012, 03:10
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.