Downloads and set path the latest version of openjdk for Windows.

install.java(
  version = 11,
  page_with_download_url = "http://jdk.java.net/java-se-ri/",
  path = "C:/java"
)

install.Java(
  version = 11,
  page_with_download_url = "http://jdk.java.net/java-se-ri/",
  path = "C:/java"
)

install.jdk(
  version = 11,
  page_with_download_url = "http://jdk.java.net/java-se-ri/",
  path = "C:/java"
)

install.Jdk(
  version = 11,
  page_with_download_url = "http://jdk.java.net/java-se-ri/",
  path = "C:/java"
)

install.openjdk(
  version = 11,
  page_with_download_url = "http://jdk.java.net/java-se-ri/",
  path = "C:/java"
)

install.OpenJdk(
  version = 11,
  page_with_download_url = "http://jdk.java.net/java-se-ri/",
  path = "C:/java"
)

Arguments

version

9 or 10 is passible. Default is 11.

page_with_download_url

where to download. Default is http://jdk.java.net/java-se-ri/11

path

where to set java. Default path is C:/java

Value

TRUE/FALSE - was the installation successful or not.

Details

install openjdk 9 or 10 version for windows.

Author

Chan-Yub Park And Tal Galili

Examples

if (FALSE) { install.java() install.java(version = 11) install.java(11) }