Problem loading rJava
I finally solved the problem:
It seems that rJava searches for jvm.dll in ~\Java\jre6\bin\client.
However this folder didn´t exist on my system (jvm.dll was in ~\bin\server).
So I just made a copy of jvm.dll in a folder ~\bin\client\ and added this to the path.
Now everything works fine!
Unable to load rJava on R
Use:
Sys.setenv(JAVA_HOME='...path to JRE...')
e.g.
Sys.setenv(JAVA_HOME='C:\\Program Files\\Java\\jdk1.7.0_51\\jre')
Your environment variable is wrong.
.onLoad failed in loadNamespace() for 'rJava
I added the following and then rJava loaded without error.
Sys.setenv(JAVA_HOME='C:\\Program Files\\Java\\jre1.8.0_221')
Related Topics
Dplyr String as Column Reference
Convert Month Year to a Date in R
How to Convert Month-Year String to Date in R
Removing Unused Factors from a Facet in Ggplot2
How to Create a New Variable in a Data.Frame Based on a Condition
Partially Color Histogram in R
How to Plot a Heat Map on a Spatial Map
Can 'Ddply' (Or Similar) Do a Sliding Window
Different Robust Standard Errors of Logit Regression in Stata and R
Numbers as Column Names of Data Frames
How to Jitter Both Geom_Line and Geom_Point by the Same Magnitude
Shiny Dashboard - Display a Dedicated "Loading.." Page Until Initial Loading of the Data Is Done
Union of Intersecting Vectors in a List in R
How to Read Geojson or Topojson File in R to Draw a Choropleth Map
How to Get the Cumulative Sum by Group in R
In R, How to Check If Two Variable Names Reference the Same Underlying Object