-
Notifications
You must be signed in to change notification settings - Fork 9
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 version error #57
Comments
Hi, Java >= 17 is required for {rjd3toolkit}. R detects version 1.8.0_402 which is insufficient. To sum up, you just need to set up the Sys.setenv("JAVA_HOME" = ".../your/java/installation/path") |
However, the message is indeed unclear and should mentioned the required version. Something like "Your java version is 8. 17 or higher is required." |
I have followed the instructions provided by the link, and it still won't work. No clue as to what the problem is. |
We suppose that you are using Windows, otherwise give more details on your OS and R version. library(rJava)
.jinit()
.jcall("java/lang/System", "S", "getProperty", "java.runtime.version") In your case it will surely return Sys.getenv("JAVA_HOME") You can run the following command to see which version is used by the system (which might be different from the one used by R) and where it is located system("java --version")
system("which java") In your case I suspect that it will return the path to the installation of JAVA 8 or an empty character. When you change this environment variable you have to restart R. So find the path to JAVA 17, restart R and run Sys.setenv(JAVA_HOME='pathToJava') # replace with your path
# Now we can test the Java version detected
library(rJava)
.jinit()
.jcall("java/lang/System", "S", "getProperty", "java.runtime.version") If you have an error loading |
If there is no message, I close the exit. |
Whenever I try to require(rjd3toolkit), I get this error: "Your java version is 1.8.0_402. N or higher."
I've tried it on the newest Java, on Java 1.7, and on Java 17, and I'm not sure what does it want me to do.
What is the correct Java setting for this toolkit?
The text was updated successfully, but these errors were encountered: