AppBundle throws “LSOpenURLsWithRole() failed with error -10810” after compiling with java 7 or 8

前端 未结 1 539
旧巷少年郎
旧巷少年郎 2021-01-18 02:57

I upgraded jdk to version 7_45. After compiling and executing the jar, which works fine, i packed it into an application bundle. But unfortunately i get this error message \

相关标签:
1条回答
  • 2021-01-18 03:16

    I kinda solved the problem. I took a look at a Processing app bundle. I think it mainly has to do with following lines in the info.plist which were missing in mine:

    <key>JVMOptions</key>
        <array>
    
          <string>-Xdock:icon=Contents/Resources/fireworks.icns</string>
          <string>-Dapple.laf.useScreenMenuBar=true</string>
          <string>-Dcom.apple.macos.use-file-dialog-packages=true</string>
          <string>-Dcom.apple.macos.useScreenMenuBar=true</string>
          <string>-Dcom.apple.mrj.application.apple.menu.about.name=Main</string>
          <string>-Dcom.apple.smallTabs=true</string>
        </array>
    
    0 讨论(0)
提交回复
热议问题