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

rJava Error #127

Closed
awfrankwils opened this Issue Dec 19, 2017 · 5 comments

Comments

Projects
None yet
3 participants
@awfrankwils

awfrankwils commented Dec 19, 2017

"Darwin Kernel Version 16.7.0: Wed Oct 4 00:17:00 PDT 2017; root:xnu-3789.71.6~1/RELEASE_X86_64"
"R version 3.4.3 (2017-11-30)"

I keep getting this error, tried reinstalling the package but it has not resolved the issue. Never had this issue before, not sure how to resolve.

library(rJava)
Error: package or namespace load failed for ‘rJava’:
.onLoad failed in loadNamespace() for 'rJava', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/libs/rJava.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/libs/rJava.so, 6): Library not loaded: @rpath/libjvm.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/libs/rJava.so
Reason: image not found

@cmbarton

This comment has been minimized.

Show comment
Hide comment
@cmbarton

cmbarton Feb 2, 2018

Same thing on the Mac version of 3.4.3 (x86_64-apple-darwin15.6.0 (64-bit))

cmbarton commented Feb 2, 2018

Same thing on the Mac version of 3.4.3 (x86_64-apple-darwin15.6.0 (64-bit))

@s-u

This comment has been minimized.

Show comment
Hide comment
@s-u

s-u Mar 14, 2018

Owner

You need to configure R with Java support:

R CMD javereconf

because Oracle Java location is changing frequently with updates.

Also note that RStudio is reported to not use Java settings correctly so you you may need to run it through R CMD to set them -- or pre-load libjni.dylib -- or explicitly set the path in the library.

Owner

s-u commented Mar 14, 2018

You need to configure R with Java support:

R CMD javereconf

because Oracle Java location is changing frequently with updates.

Also note that RStudio is reported to not use Java settings correctly so you you may need to run it through R CMD to set them -- or pre-load libjni.dylib -- or explicitly set the path in the library.

@cmbarton

This comment has been minimized.

Show comment
Hide comment
@cmbarton

cmbarton Mar 14, 2018

cmbarton commented Mar 14, 2018

@s-u

This comment has been minimized.

Show comment
Hide comment
@s-u

s-u Mar 14, 2018

Owner

Well, whoever installs the software has to do it. You don't need to (and should not) run it as sudo, but whoever installed Java and R has to do it. So ask your admin if they didn't configure R and Java correctly.

Owner

s-u commented Mar 14, 2018

Well, whoever installs the software has to do it. You don't need to (and should not) run it as sudo, but whoever installed Java and R has to do it. So ask your admin if they didn't configure R and Java correctly.

@cmbarton

This comment has been minimized.

Show comment
Hide comment
@cmbarton

cmbarton Mar 14, 2018

cmbarton commented Mar 14, 2018

@s-u s-u closed this May 16, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment