天使漫步IT工作室天使漫步IT工作室

用命令查询MAC-JDK默认安装路径-JAVA路径


Warning: count(): Parameter must be an array or an object that implements Countable in /www/wwwroot/u11u.com/usr/themes/wq/functions.php on line 110

Warning: count(): Parameter must be an array or an object that implements Countable in /www/wwwroot/u11u.com/usr/themes/wq/functions.php on line 116

查询jdk的安装路径很简单,只需要打开终端,执行:

     /usr/libexec/java_home -V

在我的电脑上显示如下:

landsnail:~ landsnail$ /usr/libexec/java_home -V
Matching Java Virtual Machines (1):
    1.8.0_05, x86_64:    "Java SE 8"    /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home

/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home

本站原创,欢迎转载,转载敬请标明出处:天使漫步IT工作室 » 用命令查询MAC-JDK默认安装路径-JAVA路径
添加新评论


Warning: Use of undefined constant php - assumed 'php' (this will throw an Error in a future version of PHP) in /www/wwwroot/u11u.com/usr/themes/wq/comments.php on line 38