title: Open Java applications fail silently on OS X Mavericks
body: <p>When opening Intelli J or Android Studio after the Mavericks update nothing happens, fails silently.</p>
  
  <p>Java and javac all work from the command line. </p>
  
  <p>Opening the apps from the command line gives this error:
  <code>LSOpenURLsWithRole() failed with error -10658 for the file /Applications/Android Studio.app.</code></p>
  
  <p>Opening Intelli J's <code>idea_appLauncher</code> (/Applications/...app/Contents/MacOS/idea_appLauncher) from the command line gave away some more information:</p>
  
  <blockquote>
    <p>someuser@machine:~$ /Applications/IntelliJ\ IDEA\ 12\
    CE.app/Contents/MacOS/idea_appLauncher ; exit; No Java runtime
    present, requesting install. logout</p>
    
    <p>[Process completed]</p>
  </blockquote>
  
  <p>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.</p>