Comments (3)
The error typically means that your R is not configured properly for your JVM location. Since you are using 3rd party distribution of R, please contact Microsoft for support.
In regular R you would use R CMD javareconf
to make sure R is configured for your Java. In technical terms, R records the location of Java in $R_HOME/etc/ldpaths
so if your R is configured properly you will see Java included in LD_LIBRARY_PATH
, e.g.:
> Sys.getenv("LD_LIBRARY_PATH")
[1] "/usr/R/devel/lib:/usr/lib/x86_64-linux-gnu:/usr/lib/jvm/java-11-openjdk-amd64/lib/server"
The path containing libjvm.so
must be listed there. If you don't see your JDK there then your R is not properly configured.
from rjava.
Thanks for replying.
I have already run R CMD javareconf
before installation, and I think it sets everything up appropriately.
Sys.getenv("LD_LIBRARY_PATH")
[1] "/opt/microsoft/ropen/4.0.2/lib64/R/lib:/lib:/builddir/vendor/build/lib:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.41.x86_64/jre/lib/amd64/server"
I found this response in stackoverflow but not sure if it's relevant to this error or not? This seems to be an RStudio thing, but I get the same error when trying to load rJava
at CLI.
from rjava.
I had to stop and start RStudio session after running that R CMD javareconf
for things to get completely effective.
sudo systemctl stop rstudio-server
sudo systemctl start rstudio-server
Thanks for the hints @s-u
from rjava.
Related Issues (20)
- wrong class in method signatures HOT 5
- R freezes when executing rJava::.jinit() HOT 1
- how to load jar by J()? HOT 1
- Termination Error with rJava When Executing Complex R Code from Java Application HOT 3
- rJava issue HOT 1
- Struggling with rJava and dependent packages in Rstudio Mac M1. Error: package or namespace load failed for ‘rJava’: HOT 3
- Segmentation Fault when try re.eval("library('forecast')") HOT 2
- *** caught segfault *** address 0xfffffffffffffff8, cause 'invalid permissions' HOT 1
- long vectors not supported yet: memory.c:3888 HOT 1
- Please submit rJava 1.0-8 to CRAN HOT 1
- Error: "Sorry, parameter type 'X' is ambiguous or not supported." HOT 2
- Error: package or namespace load failed for ‘rJava’ HOT 2
- Can't install from source package on Mac OS 14.2 HOT 1
- rJava install error on macOS M2 with homebrew-installed java HOT 1
- Issue in the installation of rJava: Cannot compile a simple JNI program HOT 2
- Licensing uncertainty HOT 2
- Can objects generated by rJava be saved locally? HOT 2
- R session Aborted Rjava HOT 1
- Is remote Java debugging supported? HOT 1
- StackOverflowError in "process reaper" thread when using .jcall() or J() with java.lang.Runtime and exec HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rjava.