Go to Post If you think that teams would never bypass the rules or do something unsafe (intentional or unintentional), I suggest you spend a weekend as an inspector. Every bad scenario that you can think of, we have seen. - Al Skierkiewicz [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 15-12-2016, 14:55
jimfl014 jimfl014 is offline
Registered User
FRC #5000 (HammerHeads)
Team Role: Mentor
 
Join Date: Oct 2016
Rookie Year: 2013
Location: Hingham, MA
Posts: 3
jimfl014 is an unknown quantity at this point
Java compile error

We are moving to Java this year from Labview. Using last year's robot we are trying to code it using Java. On two separate laptops we get the same error when trying to run: PCs are both 64 bit running Windows 10

Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\HammerHeads\AppData\Local\Temp\libwpilibJ avaJNI8681530594205079588.so: Can't load this .dll (machine code=0x34) on a AMD 64-bit platform
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at edu.wpi.first.wpilibj.hal.JNIWrapper.<clinit>(JNIW rapper.java:47)
at edu.wpi.first.wpilibj.RobotBase.initializeHardware Configuration(RobotBase.java:170)
at edu.wpi.first.wpilibj.RobotBase.main(RobotBase.jav a:182)
Reply With Quote
  #2   Spotlight this post!  
Unread 15-12-2016, 14:58
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 298
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: Java compile error

This is for simulation mode? I don't believe it runs on Windows yet. If you meant to deploy to the robot instead of simulate, right click the project > Run As > WPILib Java Deploy
__________________
Creator of SmartDashboard.js, an extensible nodejs/webkit replacement for SmartDashboard


https://ligerbots.org
Reply With Quote
  #3   Spotlight this post!  
Unread 15-12-2016, 14:59
Thad House Thad House is offline
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,068
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
Re: Java compile error

Quote:
Originally Posted by jimfl014 View Post
We are moving to Java this year from Labview. Using last year's robot we are trying to code it using Java. On two separate laptops we get the same error when trying to run: PCs are both 64 bit running Windows 10

Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\HammerHeads\AppData\Local\Temp\libwpilibJ avaJNI8681530594205079588.so: Can't load this .dll (machine code=0x34) on a AMD 64-bit platform
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at edu.wpi.first.wpilibj.hal.JNIWrapper.<clinit>(JNIW rapper.java:47)
at edu.wpi.first.wpilibj.RobotBase.initializeHardware Configuration(RobotBase.java:170)
at edu.wpi.first.wpilibj.RobotBase.main(RobotBase.jav a:182)
That looks like you are trying to run the code on your development computer. That doesn't work, and is not currently supported. Follow the instructions at the link below on how to properly get the program to deploy to your robot.

http://wpilib.screenstepslive.com/s/...to-the-roborio
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.
Reply With Quote
  #4   Spotlight this post!  
Unread 15-12-2016, 15:04
jimfl014 jimfl014 is offline
Registered User
FRC #5000 (HammerHeads)
Team Role: Mentor
 
Join Date: Oct 2016
Rookie Year: 2013
Location: Hingham, MA
Posts: 3
jimfl014 is an unknown quantity at this point
Re: Java compile error

It sounds like your saying that the laptop has to be connected to the RIO, it's not. I was thinking that I could just use the run as a way to make sure the code compiles properly and I would just get an error that it could not contact the robot.
Reply With Quote
  #5   Spotlight this post!  
Unread 15-12-2016, 15:07
Thad House Thad House is offline
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,068
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
Re: Java compile error

Quote:
Originally Posted by jimfl014 View Post
It sounds like your saying that the laptop has to be connected to the RIO, it's not. I was thinking that I could just use the run as a way to make sure the code compiles properly and I would just get an error that it could not contact the robot.
If you use the deploy function in the link above, or as Erik posted, that will build for the RoboRIO, and then fail if it can't connect. Trying to just run it on the desktop will compile as well, and then that error is showing when it is trying to run the code, and then failing because it's not running on a RoboRIO. So if you do get to that error message, the code will have compiled correctly, but its better to just do the deploy, and then let that fail to connect.
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.
Reply With Quote
  #6   Spotlight this post!  
Unread 15-12-2016, 16:19
jimfl014 jimfl014 is offline
Registered User
FRC #5000 (HammerHeads)
Team Role: Mentor
 
Join Date: Oct 2016
Rookie Year: 2013
Location: Hingham, MA
Posts: 3
jimfl014 is an unknown quantity at this point
Re: Java compile error

Thanks for clearing that up and responding so quickly!

Look forward to getting to the build site and running it on the real thing
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 11:08.

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