Quote:
Originally Posted by JohnRLewis
I created a new super simple java app to rule out anything else. I did not add any dependencies to NetworkTables. Inside my main method, I have a single line:
System.loadLibrary("ntcore");
I thought I was getting the identical error, on closer inspection, I am getting the following now:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/pi/libntcore.so: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /home/pi/libntcore.so)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.jav a:1929)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java :1847)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1119)
at org.usfirst.frc.team1294.vision.Application.main(A pplication.java:14)
|
Ah. So to fix that, you need to download the libstdc++.so.6 in the ntcore folder. Place that in /home/pi/ on your Pi, and add this line to your program start command.
env LD_PRELOAD=/home/pi/libstdc++.so.6 . So your command to run would become
env LD_PRELOAD=/home/pi/libstdc++.so.6 java myapp.jar, replacing myapp.jar with whatever your app is.
__________________
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.