-
Notifications
You must be signed in to change notification settings - Fork 4
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
How to build from source? #4
Comments
Thanks for taking an interest. You're right, this project isn't a huge priority for me. I unfortunately don't have a Windows box to experiment on at the moment. For some reason, macOS requires a legacy version of Java (Java 6) in order for the JNI to work. Maybe you could try downloading the equivalent for Windows? Other than that, I'm out of ideas really. Sorry. |
pretty sure that's not right, I recently (last job) built a java application for mac with jni components using java 8 (built the app using javafx though, which does a bunch of weird stuff) |
Yeah all the API calls that RJNI uses are documented in the Java 8 JNI documentation. So I'm sure there's a way to get the project working with Java 8, but for some reason every time I try and use RJNI macOS asks me to download a legacy Java version. Probably something to do with how I'm building the |
definitely to do with how you're instantiating the jvm, if you double click a |
I think the first way I got it to work outside Intellij was to build an app with platypus since apple doesn't like for any java thing to be the primary target of a |
this stack overflow post gets it to build (if you make sure you have the right target for your machine) and adding the location of jvm.dll to PATH gets it to run (usually jre/bin/server) |
so I inserted this into my cargo config (%USERPROFILE%/.cargo/config)
changed the Cargo.toml to this
added |
It's unclear how to build from source at the moment. Attempting to build from a Windows 10 box for the stable MSVC target with no attempt at special configuration yields:
I understand that this project is a work-in-progress, and this may not be an immediate priority for you. However, adding documentation like this will enable people to experiment and contribute, if it's something you think might help this project along. :)
The text was updated successfully, but these errors were encountered: