I can't seem to get h2o running in R.
I can easily import h2o using library(h2o) which displays
----------------------------------------------------------------------
Your next step is to start H2O:
> h2o.init()
For H2O package documentation, ask for help:
> ??h2o
After starting H2O, you can use the Web UI at http://localhost:54321
For more information visit https://docs.h2o.ai
----------------------------------------------------------------------
Attaching package: ‘h2o’
The following objects are masked from ‘package:stats’:
cor, sd, var
The following objects are masked from ‘package:base’:
%*%, %in%, &&, ||, apply, as.factor, as.numeric, colnames, colnames<-,
ifelse, is.character, is.factor, is.numeric, log, log10, log1p, log2,
round, signif, trunc
Warning message:
package ‘h2o’ was built under R version 4.1.3
But the issue is whenever I run h2o.init() to start the h2o cluster, I get the following error message
H2O is not running yet, starting it now...
<simpleError in system2(command, "-version", stdout = TRUE, stderr = TRUE): '"C:\Program Files\Java\jdk-20\bin\bin\java.exe"' not found>
Error in value[[3L]](cond) :
You have a 32-bit version of Java. H2O works best with 64-bit Java.
Please download the latest Java SE JDK from the following URL:
https://www.oracle.com/technetwork/java/javase/downloads/index.html
In addition: Warning message:
In normalizePath(path.expand(path), winslash, mustWork) :
path[1]="C:\Program Files\Java\jdk-20\bin/bin/java.exe": The system cannot find the path specified
My laptop is HP 64-bit and the Java JDK I downloaded and installed is jdk-20_windows-x64_bin (which is 64-bit).
I have also set the required Java Path in Environment Variables.
Below is the Java version installed
Microsoft Windows [Version 10.0.19044.1889]
(c) Microsoft Corporation. All rights reserved.
C:\Users\user>java -version
java version "20.0.2" 2023-07-18
Java(TM) SE Runtime Environment (build 20.0.2+9-78)
Java HotSpot(TM) 64-Bit Server VM (build 20.0.2+9-78, mixed mode, sharing)
I don't understand why h2o cannot detect my 64-bit Java already installed and work with it.
Did I download/install the wrong Java JDK file?
My R version is 4.1.0
