AMAPVox versions equal or prior to 1.10 rely on
Java/JavaFX 64-Bit. It must be installed on the Operating System before
running AMAPVox. In practice it requires either Java 8 64-Bit Oracle or Java 8 64-Bit Corretto. Mind that OpenJDK 8 will
not work for AMAPVox GUI since JavaFX is not included in this distribution.
Nonetheless for AMAPVox in batch mode, any version of Java 64-bit >= 8
should work.
You may check beforehand if java is installed on your system and which
version.
system2("java", args = "-version")
If AMAPVox::run keeps throwing errors after you have installed a suitable
Java 8 64-Bit, it means that Java 8 may not be properly detected by
your system. In such case you may have to check and set the JAVA_HOME
environment variable.
Sys.getenv("JAVA_HOME")
Sys.setenv(JAVA_HOME="path/to/java/8/bin")
system2("java", args = "-version")
As a last resort you may change the java
parameter of this function and
set the full path to Java 8 binary.
AMAPVox::run("1.10.4", java = "/path/to/java/8/bin/java")