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

Improve {lib,}jvm.{so,dylib,dll} loading #108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mingwandroid
Copy link

@mingwandroid mingwandroid commented Jun 11, 2017

For discussion: In the Anaconda Distribution (on Linux), we cannot set LD_LIBRARY_PATH and also want to have as dynamic a Java configuration as possible (various Java implementations are available). On Windows we augment PATH before attempting to load the rJava DLL.

Use the values from Makeconf to find java (Unix), falling back to JAVA_HOME (which is needed on Windows). Add the directory to PATH on Windows or dyn.load the shared library it on Linux. macOS is kept largely the same as it was except we check Makeconf before JAVA_HOME.

I hope this doesn't break lot of other things and that the approach is acceptable. I should state, I'm not much of an R programmer and so would welcome any and all feedback.

Use the values from  Makeconf to find java (Unix), falling back to
JAVA_HOME (which is needed on Windows). Add the directory to PATH
on Windows or dyn.load the shared library it on Linux. macOS is
kept largely the same as it was except we check Makeconf before
JAVA_HOME.
@mingwandroid
Copy link
Author

Can you provide any feedback @s-u?

@mingwandroid
Copy link
Author

(I am now aware that Windows doesn't use this codepath btw)

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

Successfully merging this pull request may close these issues.

1 participant