-
Notifications
You must be signed in to change notification settings - Fork 2
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
Error for h2o_start()
without java installed
#43
Comments
Thanks @hfrick for reporting this. I didn't see this error message after searching the h2o codebase. I found this function .h2o.checkJava to be used for determining java installation though, which relies on withr::with_path(
getwd(),
{
print(c(Sys.which("java"), Sys.getenv("JAVA_HOME")))
agua::h2o_start()
},
action = "replace"
)
#> java
#> "" ""
#> Registered S3 method overwritten by 'agua':
#> method from
#> tidy.workflow workflows
#> Error in .h2o.checkJava(): Cannot find Java. Please install the latest JRE from
#> https://www.oracle.com/technetwork/java/javase/downloads/index.html Created on 2022-11-05 with reprex v2.0.2 |
Ah, thanks for this! So I do have java installed but I do not have print(c(Sys.which("java"), Sys.getenv("JAVA_HOME")))
#> java
#> "/usr/bin/java" ""
agua::h2o_start()
#> Registered S3 method overwritten by 'agua':
#> method from
#> tidy.workflow workflows
#> Warning in system2(command, "-version", stdout = TRUE, stderr = TRUE): running
#> command ''/usr/bin/java' -version 2>&1' had status 1
#> Error in h2o::h2o.init(): H2O failed to start, stopping execution.
withr::with_path(
getwd(),
{
print(c(Sys.which("java"), Sys.getenv("JAVA_HOME")))
agua::h2o_start()
},
action = "replace"
)
#> java
#> "" ""
#> Error in .h2o.checkJava(): Cannot find Java. Please install the latest JRE from
#> https://www.oracle.com/technetwork/java/javase/downloads/index.html Created on 2022-11-07 with reprex v2.0.2 |
What is the output if you run |
yup, looks like it can't locate it
an alternative to failing earlier than 60 seconds could also be telling the user that this step can take up to 60 seconds |
fixed by 9922d26 |
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue. |
When I run
h2o_start()
without things installed/configured correctly, I do getbut then it just hangs there. It would be nice if that threw an error instead.
The text was updated successfully, but these errors were encountered: