{
  "name": "java",
  "description": "Launch a Java application",
  "parserDirectives": {
    "flagsArePosixNoncompliant": true
  },
  "options": [
    {
      "names": [
        "-jar"
      ],
      "description": "To launch the main class in a JAR file",
      "priority": 99,
      "args": [
        {
          "name": "JAR file",
          "template": "filepaths"
        }
      ]
    },
    {
      "names": [
        "-D"
      ],
      "description": "Set a system property, -D<NAME>=<VALUE>",
      "priority": 98
    },
    {
      "names": [
        "--help",
        "-h",
        "-?"
      ],
      "description": "Show help for java"
    },
    {
      "names": [
        "--version",
        "-version"
      ],
      "description": "Print product version to the error stream and exit"
    },
    {
      "names": [
        "-showversion",
        "--show-version"
      ],
      "description": "Print product version to the output stream and continue"
    },
    {
      "names": [
        "--dry-run"
      ],
      "description": "Create VM and load main class but do not execute main method"
    },
    {
      "names": [
        "--classpath",
        "-cp"
      ],
      "description": "Class search path of directories and zip/jar files",
      "args": [
        {
          "name": "search files",
          "template": "filepaths"
        }
      ]
    }
  ],
  "args": [
    {
      "name": "mainclass",
      "description": "To launch a class file",
      "template": "filepaths"
    }
  ]
}
