title: Can't launch app on Mac OS X I receive error LSOpenURLsWithRole() failed for the application with error -10810
body: <h2>The Problem</h2>
  
  <p>I am trying to launch an app (<a href="http://www.genostar.com/category/products/gna/" rel="noreferrer">Genetic Network Analyzer</a>) but it fails silently. When using <code>open gna.app</code> the following error message is produced:</p>
  
  <pre><code>LSOpenURLsWithRole() failed with error -10810 for the file /Applications/GNA_8.7.1.1/gna.app
  </code></pre>
  
  <p>I believe the issue has to do with my Java Run time Environment (the program is written in Java). I do not know how to correct this issue.</p>
  
  <h2>Technical Stuff:</h2>
  
  <ul>
  <li>My operating system is Mac OS X version </li>
  <li>I have both the latest version of Java, Java 8 Update 91</li>
  <li>I have also installed <a href="https://support.apple.com/kb/DL1572?locale=en_US" rel="noreferrer">legacy Java</a></li>
  <li><p>The info.plist file for the app</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd"&gt;
  &lt;plist version="0.9"&gt;
  &lt;dict&gt;
  &lt;key&gt;CFBundleName&lt;/key&gt;
  &lt;string&gt;gna&lt;/string&gt;
  &lt;key&gt;CFBundleExecutable&lt;/key&gt;
  &lt;string&gt;JavaApplicationStub&lt;/string&gt;
  &lt;key&gt;CFBundleIconFile&lt;/key&gt;
  &lt;string&gt;app.icns&lt;/string&gt;
  &lt;key&gt;CFBundleInfoDictionaryVersion&lt;/key&gt;
  &lt;string&gt;6.0&lt;/string&gt;
  &lt;key&gt;CFBundlePackageType&lt;/key&gt;
  &lt;string&gt;APPL&lt;/string&gt;
  &lt;key&gt;CFBundleSignature&lt;/key&gt;
  &lt;string&gt;????&lt;/string&gt;
  &lt;key&gt;CFBundleIdentifier&lt;/key&gt;
  &lt;string&gt;com.install4j.7878-5124-9390-0704.96&lt;/string&gt;
  &lt;key&gt;CFBundleVersion&lt;/key&gt;
  &lt;string&gt;8.7.1.1&lt;/string&gt;
  &lt;key&gt;CFBundleShortVersionString&lt;/key&gt;
  &lt;string&gt;8.7.1.1&lt;/string&gt;
  &lt;key&gt;CFBundleGetInfoString&lt;/key&gt;
  &lt;string&gt;8.7.1.1&lt;/string&gt;
  &lt;key&gt;CFBundleDevelopmentRegion&lt;/key&gt;
  &lt;string&gt;en&lt;/string&gt;
  &lt;key&gt;CFBundleAllowMixedLocalizations&lt;/key&gt;
  &lt;true/&gt;
  &lt;key&gt;NSHighResolutionCapable&lt;/key&gt;
  &lt;true/&gt;
  &lt;!-- I4J_INSERT_DOCTYPE --&gt;
  &lt;key&gt;i4j.baseDir&lt;/key&gt;
  &lt;string&gt;$APP_PACKAGE/../&lt;/string&gt;
  &lt;key&gt;LSMinimumSystemVersion&lt;/key&gt;
  &lt;string&gt;10.7.3&lt;/string&gt;
  &lt;key&gt;i4j.appId&lt;/key&gt;
  &lt;string&gt;7878-5124-9390-0704&lt;/string&gt;
  &lt;key&gt;i4j.allowPassthrough&lt;/key&gt;
  &lt;true/&gt;
  &lt;key&gt;i4j.minVersion&lt;/key&gt;
  &lt;string&gt;1.7&lt;/string&gt;
  &lt;key&gt;i4j.maxVersion&lt;/key&gt;
  &lt;string&gt;1.7&lt;/string&gt;
  &lt;key&gt;i4j.vmIdPrefix&lt;/key&gt;
  &lt;string&gt;&lt;/string&gt;
  &lt;key&gt;JavaVM&lt;/key&gt;
  &lt;dict&gt;
  &lt;key&gt;MainClass&lt;/key&gt;
  &lt;string&gt;com.install4j.runtime.launcher.MacLauncher&lt;/string&gt;
  &lt;key&gt;VMOptionArray&lt;/key&gt;
  &lt;array&gt;
  &lt;string&gt;-Dfile.encoding=UTF-8&lt;/string&gt;
  &lt;string&gt;-Diogma.home=$APP_PACKAGE/..&lt;/string&gt;
  &lt;string&gt;-Diogma.user.home=$APP_PACKAGE/..&lt;/string&gt;
  &lt;string&gt;-Diogma.user.externals=$APP_PACKAGE/..&lt;/string&gt;
  &lt;string&gt;-Diogma.user.data=$APP_PACKAGE/..&lt;/string&gt;
  &lt;string&gt;-Diogma.licenser=default&lt;/string&gt;
  &lt;string&gt;-Dlog4j.debug&lt;/string&gt;
  &lt;string&gt;-Dlog4j.configuration=iogma/platform/log4j.properties&lt;/string&gt;
  &lt;string&gt;-Dswing.defaultlaf=net.infonode.gui.laf.InfoNodeLookAndFeel&lt;/string&gt;
  &lt;string&gt;-Duser.language=en&lt;/string&gt;
  &lt;string&gt;-Diogma.application.name=GNA&lt;/string&gt;
  &lt;string&gt;-Diogmadatabase=false&lt;/string&gt;
  &lt;string&gt;-Dinstall4j.launcherId=96&lt;/string&gt;
  &lt;string&gt;-Dinstall4j.swt=false&lt;/string&gt;
  &lt;string&gt;-Djava.library.path=$APP_PACKAGE/../Externals/Ports/x86_64-darwin/lib&lt;/string&gt;
  &lt;string&gt;-Dexe4j.moduleName=$APP_PACKAGE&lt;/string&gt;
  &lt;/array&gt;
  &lt;key&gt;OptionsFile&lt;/key&gt;
  &lt;string&gt;$APP_PACKAGE/Contents/vmoptions.txt&lt;/string&gt;
  &lt;key&gt;ArgumentArray&lt;/key&gt;
  &lt;array&gt;
  &lt;/array&gt;
  &lt;key&gt;SplashFile&lt;/key&gt;
  &lt;string&gt;$APP_PACKAGE/../.install4j/s_1qq6wu9.png&lt;/string&gt;
  &lt;key&gt;JVMVersion&lt;/key&gt;
  &lt;string&gt;1.4+&lt;/string&gt;
  &lt;key&gt;ClassPath&lt;/key&gt;
  &lt;string&gt;$APP_PACKAGE/../.install4j/i4jruntime.jar:$APP_PACKAGE/../bin/*:$APP_PACKAGE/../GNA/bin/*:$APP_PACKAGE/../plugins/iogma.core.platform/bin/*&lt;/string&gt;&lt;!-- I4J_INSERT_CLASSPATH --&gt;
  &lt;/dict&gt;
  &lt;/dict&gt;
  &lt;/plist&gt;
  </code></pre></li>
  </ul>
  
  <h2>Additional Notes:</h2>
  
  <ul>
  <li>I have also contacted the developer, but this program does work on other computers running Mac OS X 10.11.5.</li>
  <li>I have looked at the following posts and they do not answer my question as they are either for another operating system, they are not trying to launch an app bundle, they are trying to create an program I am not, or the solution does not work for me.
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/28105587/what-makes-an-os-x-app-not-open-with-the-error-lsopenurlswithrole-failed-with">What makes an OS X app not open with the error “LSOpenURLsWithRole() failed with error -10810”?</a></li>
  <li><a href="https://stackoverflow.com/questions/20325308/appbundle-throws-lsopenurlswithrole-failed-with-error-10810-after-compiling">AppBundle throws “LSOpenURLsWithRole() failed with error -10810” after compiling with java 7 or 8</a></li>
  <li><a href="https://stackoverflow.com/questions/1038226/autodetect-jre-version-and-install-the-required-version-on-mac-os-x-before-launc">Autodetect JRE Version and Install the required Version on MAC OS X before launching an application</a></li>
  <li><a href="https://stackoverflow.com/questions/19458383/install4j-mac-osx-single-bundle-with-java-7-app-launch-error">Install4j - Mac OSX Single Bundle with Java 7 - app launch error</a></li>
  <li><a href="https://stackoverflow.com/questions/26704118/jwrapper-example-application-fails-to-launch-on-mac-os-x-10-8-5">JWrapper example application fails to launch on Mac OS X 10.8.5</a></li>
  </ul></li>
  <li>I also do not know how .plist files function so please be aware of that when answering my question.</li>
  </ul>