打开 Java 应用程序在 OS X Mavericks 上静默失败 [英] Open Java applications fail silently on OS X Mavericks

查看:41
本文介绍了打开 Java 应用程序在 OS X Mavericks 上静默失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Mavericks 更新后打开 Intelli J 或 Android Studio 时没有任何反应,无提示失败.

When opening Intelli J or Android Studio after the Mavericks update nothing happens, fails silently.

Java 和 javac 都在命令行中工作.

Java and javac all work from the command line.

从命令行打开应用程序会出现以下错误:LSOpenURLsWithRole() 失败,文件/Applications/Android Studio.app 的错误为 -10658.

Opening the apps from the command line gives this error: LSOpenURLsWithRole() failed with error -10658 for the file /Applications/Android Studio.app.

从命令行打开 Intelli J 的 idea_appLauncher (/Applications/...app/Contents/MacOS/idea_appLauncher) 提供了更多信息:

Opening Intelli J's idea_appLauncher (/Applications/...app/Contents/MacOS/idea_appLauncher) from the command line gave away some more information:

someuser@machine:~$/Applications/IntelliJ\ IDEA\ 12\CE.app/Contents/MacOS/idea_appLauncher ;出口;没有 Java 运行时目前,要求安装.退出

someuser@machine:~$ /Applications/IntelliJ\ IDEA\ 12\ CE.app/Contents/MacOS/idea_appLauncher ; exit; No Java runtime present, requesting install. logout

[流程完成]

很明显,即使我的 Java 安装是 PATH 的一部分并且设置了 JAVA_HOME 并且没有给出请安装 Java 运行时"提示,Mavericks 也没有接受我的 Java 安装.

Obviosuly Mavericks is not picking up on my Java installation even if it's part of PATH and JAVA_HOME is set and it's not giving the "Please install Java runtime" prompt.

推荐答案

解决方案:

手动下载并安装 Java 运行时.

您还需要从设置"/安全"和安全"中启用所有来源的应用程序.隐私.

You also need to enable application from all sources from Settings/Security & Privacy.

这篇关于打开 Java 应用程序在 OS X Mavericks 上静默失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆