Are you building on a machine without an internet connection or one with a very restrictive school firewall? Those errors look like they’re trying to fetch dependencies but can’t. Can you connect to those URLs with a web browser? Note the dependencies should get cached so you don’t always need an internet connection, just when you initially build.
Building on a computer connected to school internet. I can take it home and work on it at home and see if it works there.
As someone said earlier, sorry for “hijacking this thread.” This thread is highlighting a problem we are having. Basically we have some unit test code that is invoking some of our code that has Network Tables. The code works (not the unit test) when installed on the robot, but is not working on our development machines (currently Windows). Our build.gradle, with respect to dependencies, looks like:
dependencies {
compile wpi.deps.wpilib()
compile wpi.deps.vendor.java()
nativeZip wpi.deps.vendor.jni(wpi.platforms.roborio)
nativeDesktopZip wpi.deps.vendor.jni(wpi.platforms.desktop)
testCompile 'junit:junit:4.12'
}
And the error we are seeing is:
java.io.IOException: ntcorejni could not be loaded from path or an embedded resource.
attempted to load for platform /windows/x86-64/
I know that this is trying to load the native libs, but I haven not been able to locate. We ran the Visual Studio code to get the updated project, and like I said, it works on the robot.
Since this is just the unit test code, we are disabling test for now. Eventually we want to have automatic testing working.
-
How can I update the build to located the native libraries?
-
Are there any other dependencies we need to pull?
If you updated to 2020 gradlerio, there are a few more dependencies you need to add to the nativeZip configuration. See a created 2020 robot project for what needs to be added.
Also, if it’s not running with the wpilib installed Java, you likely need the latest version of the 64 bit c++ runtime. That can be found here.
https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads
Awesome Thad_House. It turned out I had forgotten to update the JAVA_HOME on my machine and was pointing to an older version. Once I set it correctly, the tests started to run. Thank you for your help.
Is it possible to run two clients off of one pi? My team is currently attempting to use a pi as our vision processor as well as controlling a set of ws2812b strips, and we’d like to receive commands for the led strips via network tables. Both programs are using the NetworkTablesInstance.getDefault() and startClientTeam.
We also have another pi set up with the ip of 10.TE.AM.2 to test things, and the logging shows the pi connecting through two ports, which makes sense, but then the second, which i assume to be the LED program, disconnects suddenly.
I’m wondering how i would properly execute this. The robotpy docs say only one debug instance can be run on the same port at a time, but I’m not sure if this is an issue. It’s been puzzling me for a while and for the most part googling has had little to no success.
You should be able to start multiple networktables clients on the same host without any problem. Chances are that client program is crashing and restarting, so you should check to see what’s happening to it.