{
    "mode": "man",
    "parameter": "update-java-alternatives",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/update-java-alternatives/8/json",
    "generated": "2026-06-15T14:22:21Z",
    "synopsis": "",
    "sections": {
        "NAME": {
            "content": "update-java-alternatives - update alternatives for jre/sdk installations\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "",
            "subsections": [
                {
                    "name": "update-java-alternatives [--jre] [--plugin] [-v|--verbose]",
                    "content": "-l|--list [<jname>]\n-s|--set <jname>\n-a|--auto\n-h|-?|--help\n"
                }
            ]
        },
        "DESCRIPTION": {
            "content": "update-java-alternatives updates all alternatives belonging to one runtime or development kit\nfor the Java language.  A package does provide these  information  of  it's  alternatives  in\n/usr/lib/jvm/.<jname>.jinfo.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-l|--list [<jname>]",
                    "content": "List  all installed packages (or just <jname>) providing information to set a bunch of\njava alternatives. Verbose output shows each alternative provided by the packages.\n"
                },
                {
                    "name": "-a|--auto",
                    "content": "Switch all alternatives of registered jre/sdk installations to automatic mode.\n"
                },
                {
                    "name": "-s|--set <jname>",
                    "content": "Set all alternatives of the registered jre/sdk installation to the program  path  pro‐\nvided by the <jname> installation.\n\n--jre  Limit  the  actions to alternatives belong to a runtime environment, not a development\nkit.\n"
                },
                {
                    "name": "--jre-headless",
                    "content": "Limit the actions to alternatives belong to the headless part of  a  runtime  environ‐\nment.\n",
                    "long": "--jre-headless"
                },
                {
                    "name": "--plugin",
                    "content": "Limit the actions to alternatives providing browser plugins.\n",
                    "long": "--plugin"
                },
                {
                    "name": "-h|--help",
                    "content": "Display a help message.\n"
                },
                {
                    "name": "-v|--verbose",
                    "content": "Verbose output.\n\n"
                }
            ]
        },
        "FILES": {
            "content": "/usr/lib/jvm/.*.jinfo\nA  text file describing a jre/sdk installation. Consists of some variables of the form\n<var>=<value> and a list of alternatives of the form jre|jdk <name> <path>.\n\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "update-java-alternatives   and   this   manual   page   was   written   by   Matthias   Klose\n<doko@ubuntu.com>.\n\n\n\nMay 2006                   UPDATE-JAVA-ALTERNATIVES(8)",
            "subsections": []
        }
    },
    "summary": "update-java-alternatives - update alternatives for jre/sdk installations",
    "flags": [
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "List all installed packages (or just <jname>) providing information to set a bunch of java alternatives. Verbose output shows each alternative provided by the packages."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Switch all alternatives of registered jre/sdk installations to automatic mode."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Set all alternatives of the registered jre/sdk installation to the program path pro‐ vided by the <jname> installation. --jre Limit the actions to alternatives belong to a runtime environment, not a development kit."
        },
        {
            "flag": "",
            "long": "--jre-headless",
            "arg": null,
            "description": "Limit the actions to alternatives belong to the headless part of a runtime environ‐ ment."
        },
        {
            "flag": "",
            "long": "--plugin",
            "arg": null,
            "description": "Limit the actions to alternatives providing browser plugins."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Display a help message."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Verbose output."
        }
    ],
    "examples": [],
    "see_also": []
}