无法在 Mac OS X 上启动应用程序 我收到错误 LSOpenURLsWithRole() 应用程序失败,错误为 -10810

2024-05-12

问题

我正在尝试启动一个应用程序(遗传网络分析仪 http://www.genostar.com/category/products/gna/)但它默默地失败了。使用时open gna.app产生以下错误消息:

LSOpenURLsWithRole() failed with error -10810 for the file /Applications/GNA_8.7.1.1/gna.app

我相信这个问题与我的 Java 运行时环境有关(该程序是用 Java 编写的)。我不知道如何纠正这个问题。

技术资料:

  • 我的操作系统是Mac OS X版本
  • 我有最新版本的 Java,Java 8 Update 91
  • 我也安装了遗留Java https://support.apple.com/kb/DL1572?locale=en_US
  • 应用程序的 info.plist 文件

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
    <plist version="0.9">
    <dict>
    <key>CFBundleName</key>
    <string>gna</string>
    <key>CFBundleExecutable</key>
    <string>JavaApplicationStub</string>
    <key>CFBundleIconFile</key>
    <string>app.icns</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundlePackageType</key>
    <string>APPL</string>
    <key>CFBundleSignature</key>
    <string>????</string>
    <key>CFBundleIdentifier</key>
    <string>com.install4j.7878-5124-9390-0704.96</string>
    <key>CFBundleVersion</key>
    <string>8.7.1.1</string>
    <key>CFBundleShortVersionString</key>
    <string>8.7.1.1</string>
    <key>CFBundleGetInfoString</key>
    <string>8.7.1.1</string>
    <key>CFBundleDevelopmentRegion</key>
    <string>en</string>
    <key>CFBundleAllowMixedLocalizations</key>
    <true/>
    <key>NSHighResolutionCapable</key>
    <true/>
    <!-- I4J_INSERT_DOCTYPE -->
    <key>i4j.baseDir</key>
    <string>$APP_PACKAGE/../</string>
    <key>LSMinimumSystemVersion</key>
    <string>10.7.3</string>
    <key>i4j.appId</key>
    <string>7878-5124-9390-0704</string>
    <key>i4j.allowPassthrough</key>
    <true/>
    <key>i4j.minVersion</key>
    <string>1.7</string>
    <key>i4j.maxVersion</key>
    <string>1.7</string>
    <key>i4j.vmIdPrefix</key>
    <string></string>
    <key>JavaVM</key>
    <dict>
    <key>MainClass</key>
    <string>com.install4j.runtime.launcher.MacLauncher</string>
    <key>VMOptionArray</key>
    <array>
    <string>-Dfile.encoding=UTF-8</string>
    <string>-Diogma.home=$APP_PACKAGE/..</string>
    <string>-Diogma.user.home=$APP_PACKAGE/..</string>
    <string>-Diogma.user.externals=$APP_PACKAGE/..</string>
    <string>-Diogma.user.data=$APP_PACKAGE/..</string>
    <string>-Diogma.licenser=default</string>
    <string>-Dlog4j.debug</string>
    <string>-Dlog4j.configuration=iogma/platform/log4j.properties</string>
    <string>-Dswing.defaultlaf=net.infonode.gui.laf.InfoNodeLookAndFeel</string>
    <string>-Duser.language=en</string>
    <string>-Diogma.application.name=GNA</string>
    <string>-Diogmadatabase=false</string>
    <string>-Dinstall4j.launcherId=96</string>
    <string>-Dinstall4j.swt=false</string>
    <string>-Djava.library.path=$APP_PACKAGE/../Externals/Ports/x86_64-darwin/lib</string>
    <string>-Dexe4j.moduleName=$APP_PACKAGE</string>
    </array>
    <key>OptionsFile</key>
    <string>$APP_PACKAGE/Contents/vmoptions.txt</string>
    <key>ArgumentArray</key>
    <array>
    </array>
    <key>SplashFile</key>
    <string>$APP_PACKAGE/../.install4j/s_1qq6wu9.png</string>
    <key>JVMVersion</key>
    <string>1.4+</string>
    <key>ClassPath</key>
    <string>$APP_PACKAGE/../.install4j/i4jruntime.jar:$APP_PACKAGE/../bin/*:$APP_PACKAGE/../GNA/bin/*:$APP_PACKAGE/../plugins/iogma.core.platform/bin/*</string><!-- I4J_INSERT_CLASSPATH -->
    </dict>
    </dict>
    </plist>
    

补充笔记:

  • 我也联系了开发人员,但该程序确实可以在运行 Mac OS X 10.11.5 的其他计算机上运行。
  • 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.
    • 是什么导致 OS X 应用程序无法打开并出现错误“LSOpenURLsWithRole() 失败,错误 -10810”? https://stackoverflow.com/questions/28105587/what-makes-an-os-x-app-not-open-with-the-error-lsopenurlswithrole-failed-with
    • 使用 java 7 或 8 编译后,AppBundle 抛出“LSOpenURLsWithRole() failed with error -10810” https://stackoverflow.com/questions/20325308/appbundle-throws-lsopenurlswithrole-failed-with-error-10810-after-compiling
    • 在启动应用程序之前自动检测 JRE 版本并在 MAC OS X 上安装所需的版本 https://stackoverflow.com/questions/1038226/autodetect-jre-version-and-install-the-required-version-on-mac-os-x-before-launc
    • Install4j - Mac OSX Single Bundle with Java 7 - 应用程序启动错误 https://stackoverflow.com/questions/19458383/install4j-mac-osx-single-bundle-with-java-7-app-launch-error
    • JWrapper 示例应用程序无法在 Mac OS X 10.8.5 上启动 https://stackoverflow.com/questions/26704118/jwrapper-example-application-fails-to-launch-on-mac-os-x-10-8-5
  • 我也不知道 .plist 文件如何工作,所以请在回答我的问题时注意这一点。

None

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

无法在 Mac OS X 上启动应用程序 我收到错误 LSOpenURLsWithRole() 应用程序失败,错误为 -10810 的相关文章

随机推荐