commandbox.system.modules_app.server-commands.commands.server.java

Class install

lucee.Component
    extended by 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}

Class Attributes:
  • aliases : java install
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Property Summary
    type property default serializable required
    any javaService


    • access = public
    • returntype = any
    • inject = JavaService
    true false
    Method Summary
    any run(string ID, [boolean verbose='false'], [boolean setDefault='false'])
     
    Methods inherited from class lucee.Component
    None

    Property Detail

    javaService

    property any javaService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - JavaService
    serializable - true

    Method Detail

    run

    public any run(string ID, [boolean verbose='false'], [boolean setDefault='false'])

    Parameters:
    ID - Full name of the Java install you wish to install
    verbose - Show verbose installation information
    setDefault - Set this Java install to be the default after installing