Closed tedmoorman closed 2 years ago
Essentially your Java setting are invalid. You have to re-configure R with correct settings that match your JDK - typically best way is to unset JAVA_HOME
, make sure the correct java
and javac
are on your PATH
and then run R CMD javareconf
. If you don't have admin permissions to fix the broken R setup then you will have to use javareconf -n
to compile and then set the correct settings (JAVA_HOME
and R_JAVA_LD_LIBRARY_PATH
) in your environment before you start R since R will prefer your environment settings over the site settings if set. Ideally, you should get your admins to fix the broken system since they were responsible for breaking it.
Note that you can compile against one JDK and then use another - they are all binary compatible (however, class files are only backwards compatible so you can't use newer class files with older JDK but you can vice versa).
I really appreciate the response, Simon. I'm passing this along to the admins to get fixed.
This issue originally arose from trying to specify a JDBC driver in the RJDBC package. I moved back a step to rJava to see if I could get similar errors. It's similar to #62, but the original poster didn't continue to provide feedback.
Here is the error:
Here is some information about my system:
Here is information about the Java version and settings:
Here is the default JAVA_HOME set by my admins (which I can change in my .bash_profile):
Here is the default CLASSPATH set by my admins (which I can change in my .bash_profile):
Here are additional environmental settings from Sys.getenv()
There are multiple Java versions on the server I'm using:
Is there anything else I can provide?
Any insight is appreciated.