我試圖在gazebosim中運行一些基本的代碼,項目建立良好,但一旦它連接到涼亭我得到的錯誤「線程中的異常」主「java.lang.UnsatisfiedLinkError:沒有ntcore在java.library.path」線程「main」中的異常java.lang.UnsatisfiedLinkError:java.library.path中沒有ntcore?
我已經找到了文件ntcore.so與-Djava'library.path
target name="simulate" depends="jar-for-simulation">
<sequential>
<echo>[simulate] You may now run Gazebo and your DriverStation</echo>
<echo>[simulate] Running Code.</echo>
<java jar="${simulation.dist.jar}" fork="true">
<jvmarg value="-Djava.library.path={/home/alex/wpilib/java/current/lib/native/lib/libntcore.so}" />
</java>
</sequential>
任何想法sepcified它的位置?這是推動我控制檯的瘋狂
輸出:
Buildfile: /home/alex/workspace/TestRobo/build.xml
Trying to override old definition of task classloader
compile:
[echo] [athena-compile] Compiling src with classpath=/home/alex/wpilib/java/current/lib/WPILib.jar:/home/alex/wpilib/java/current/lib/NetworkTables.jar:/home/alex/wpilib/java/current/lib/opencv.jar:/home/alex/wpilib/java/current/lib/cscore.jar to build
jar-for-simulation:
[echo] [jar-for-simulation] Building jar.
[jar] Building jar: /home/alex/workspace/TestRobo/dist/FRCUserProgramSim.jar
simulate:
[echo] [simulate] You may now run Gazebo and your DriverStation
[echo] [simulate] Running Code.
[java] Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
[java] resources = |[email protected]|
[java] platform: /Linux/i386/
[java] Exception in thread "main" java.lang.UnsatisfiedLinkError: no ntcore in java.library.path
[java] at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1865)
[java] at java.lang.Runtime.loadLibrary0(Runtime.java:870)
[java] at java.lang.System.loadLibrary(System.java:1122)
[java] at edu.wpi.first.wpilibj.networktables.NetworkTablesJNI.<clinit>(NetworkTablesJNI.java:60)
[java] at edu.wpi.first.wpilibj.networktables.NetworkTable.initialize(NetworkTable.java:44)
[java] at edu.wpi.first.wpilibj.networktables.NetworkTable.getTable(NetworkTable.java:176)
[java] at edu.wpi.first.wpilibj.RobotBase.<init>(RobotBase.java:58)
[java] at edu.wpi.first.wpilibj.SampleRobot.<init>(SampleRobot.java:31)
[java] at org.usfirst.frc.team420.robot.Robot.<init>(Robot.java:29)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
[java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[java] at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
[java] at java.lang.Class.newInstance(Class.java:442)
[java] at edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:190)