lucee.Component
commandbox.system.modules_app.server-commands.commands.server.java.install
Install a version of Java for your servers to use. . {code:bash} server java install openjdk11 {code} Set a Java install to be the default server JRE at the same time you install with --setDefault . {code:bash} server java install openjdk11 --setDefault {code} Note, the default will be set to exactly what you type, so if you don't type a specific release version then CommandBox will still check the API for the latest version every time and download on demand. To set a default version of Java and have CommandBox never check again, set a very specific release version . {code:bash} server java install openjdk8_jdk8u192-b12 --setDefault {code}
| Property Summary | ||||
|---|---|---|---|---|
| type | property | default | serializable | required |
any
|
javaService
|
true
|
false
|
|
| Method Summary | |
|---|---|
any
|
run(string ID, [boolean verbose='false'], [boolean setDefault='false'])
|
| Methods inherited from class lucee.Component |
|---|
| None |
| Property Detail |
|---|
access - publicrequired - falsereturntype - anyinject - JavaServiceserializable - true| Method Detail |
|---|
ID - Full name of the Java install you wish to installverbose - Show verbose installation informationsetDefault - Set this Java install to be the default after installing