简体   繁体   English

OSX Mavericks Finder Java版本

[英]OSX Mavericks Finder Java Version

This one has me pretty frustrated... 这个让我非常沮丧...

I've installed the Java JDK and got the command line successfully pointed at it. 我已经安装了Java JDK,并成功地在命令行中指出了它。 When I open jar files through the terminal it uses the correct JDK to run the jar. 当我通过终端打开jar文件时,它将使用正确的JDK运行jar。

However, when I attempt to open the same jar via double-clicking it in Finder, it uses a different Java executable! 但是,当我尝试通过在Finder中双击打开同一jar时,它使用了另一个Java可执行文件! In this case, the one that's located at /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java . 在这种情况下,该文件位于/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java

How can I change what Java executable Finder is using? 如何更改正在使用的Java可执行文件Finder?

System Preferences > Java Control Panel > Java > View... : 系统偏好设置> Java控制面板> Java>视图...

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM