Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task simulateJava causes code to crash in examples #399

Closed
gnawinganimal opened this issue Jan 24, 2020 · 2 comments · Fixed by #401
Closed

Task simulateJava causes code to crash in examples #399

gnawinganimal opened this issue Jan 24, 2020 · 2 comments · Fixed by #401

Comments

@gnawinganimal
Copy link

Hi all, it seems like when running the task simulateJava in the GradleRIO examples, the code crashes at runtime. This problem is not present when pushing to the RoboRIO. The error is as follows:

java.io.IOException: wpiHaljni could not be loaded from path or an embedded resource.
        attempted to load for platform /windows/x86-64/

        at edu.wpi.first.wpiutil.RuntimeLoader.loadLibrary(RuntimeLoader.java:78)
        at edu.wpi.first.hal.JNIWrapper.<clinit>(JNIWrapper.java:38)
        at edu.wpi.first.wpilibj.RobotBase.startRobot(RobotBase.java:316)
        at frc.team0000.robot.Main.main(Main.java:27)

This has not happened when running simulateJava in the past. Is this a change that was made or is it a bug?

@PeterJohnson
Copy link
Member

PeterJohnson commented Jan 24, 2020

You need to install the latest Visual Studio redistributable. https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads

@gnawinganimal
Copy link
Author

Thanks, that was the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants