Search code examples
javaintellij-ideaandroid-studioosx-mavericks

Open Java applications fail silently on OS X Mavericks


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

Java and javac all work from the command line.

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

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 ; exit; No Java runtime present, requesting install. logout

[Process completed]

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.


Solution

  • Solution:

    Download and install the Java Runtime manually.

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