-
Notifications
You must be signed in to change notification settings - Fork 0
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
Java woes... #1
Comments
We could try adding: I don't think setting of JAVA_HOME is persisting through into the container |
This can be solved within an R session by updating the LD_LIBRARY_PATH with Sys.setenv(). This seems less than ideal, but I assume there's a way to add java-8 to the path more generally without breaking anything? |
Can the LD_LIBRARY_PATH be set outside of a session? I think that is where we are running into trouble... |
It probably can be set globally but possibly shouldn't. Beyond me at this stage, but I'll do some googling. |
I would try setting rprofile <- file.path(R.home(), ".Rprofile")
file.create(rprofile)
cat('Sys.setenv(LD_LIBRARY_PATH = <blahblahblah>)', file = rprofile) Maybe it's worth wrapping this and other R things like #3 up in an R setup script to run in the dockerfile? |
I this this Rprofile approach means the environment variable is only set for R, not for other programs that might want to use java |
I've tried some variants of this, setting LD_LIBRARY_PATH and JAVA_HOME. It seems to break the rJava installation then, so it won't even install RNetLogo. |
I'm not sure this is the best route to go down. Why do we need Java 8? I suggest focusing on the NetLogo issue because everything else works: #4 |
boab/Dockerfile
Line 51 in 7baf111
This is installing multiple versions of JRE - 8 & 11. We need to force only the single version to install or somehow set the version to use to 8
The text was updated successfully, but these errors were encountered: