您当前的位置: 首页 >  Java

liaowenxiong

暂无认证

  • 2浏览

    0关注

    1171博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

java_home命令详解

liaowenxiong 发布时间:2022-01-21 11:55:37 ,浏览量:2

文章目录
  • 命令介绍
  • 命令选项说明
  • 帮助信息

命令介绍

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/ 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
关注
打赏
1661566967
查看更多评论
立即登录/注册

微信扫码登录

0.0388s