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

前端 未结 1 538
旧巷少年郎
旧巷少年郎 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:

    JVMOptions
        
    
          -Xdock:icon=Contents/Resources/fireworks.icns
          -Dapple.laf.useScreenMenuBar=true
          -Dcom.apple.macos.use-file-dialog-packages=true
          -Dcom.apple.macos.useScreenMenuBar=true
          -Dcom.apple.mrj.application.apple.menu.about.name=Main
          -Dcom.apple.smallTabs=true
        
    

    0 讨论(0)
提交回复
热议问题