AppBundle throws "LSOpenURLsWithRole () with error -10810" after compilation using java 7 or 8

I updated jdk to version 7_45. After compiling and executing a jar that works great, I packaged it into an application package. But, unfortunately, I get this error message "LSOpenURLsWithRole () with error -10810 for file /Users/.../MyApp.app". Same problem with jdk 8 early access. I also. I tried different settings in the info.plist file for the "JVMVersion" key

Since jar itself works fine, I could make a workaround by replacing JavaApplicationStub with my own executable, which would just call it "java -jar./.../MyApp.jar". But I’m not quite sure that this is the right way to solve this problem. Any suggestions? Thanks.

+7
java java-7 java-8 macos app-bundle
source share
1 answer

I kind of solved the problem. I took a look at the processing application package. I think that this is mainly due to the following lines in info.plist that I did not have:

<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
source share

All Articles