java_home命令详解

编程知识 更新时间:2023-05-02 19:03:17

文章目录

  • 命令介绍
  • 命令选项说明
  • 帮助信息

命令介绍

The java_home command returns a path suitable for setting the JAVA_HOME environment variable. It determines this path from the user’s preferred JVM based on configured environment variables. Additional constraints may be provided to filter the list of JVMs available. By default, if no constraints match the available list of JVMs, the default order is used. The path is printed to standard output.

命令选项说明

-v or --version  version
          Filters the returned JVMs by version (as if JAVA_VERSION had been set in the environment). Example versions: "11.0", or "14.0.2".


   -a or --arch  architecture
          Filters the returned JVMs by the architecture they support (as if JAVA_ARCH had been set in the environment). Example architectures: "x86_64", or "arm64".


   -F or --failfast
          Immediately fails when filters return no JVMs; does not print out the path to the default $JAVA_HOME.


   --exec  command ...
          Executes the command at $JAVA_HOME/bin/<command> and passes the remaining arguments. Any arguments to select which $JAVA_HOME to use must precede the --exec option.


   -X or --xml
          Prints a list of all matching JVMs and associated properties as an XML plist to stdout.


   -V or --verbose
          Prints a list of all matching JVMs and architectures to stderr.


   -h or --help
          Brief usage information.

帮助信息

[~]$ man java_home

更多推荐

java_home命令详解

本文发布于:2023-04-28 04:26:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/6b1ab44d4b3c949c6c0cd72855043047.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:详解   命令   java_home

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 107624文章数
  • 27229阅读数
  • 0评论数