After compiling with Java 7 or 8, appbundle throws “lsopenurlswithrole() failed, error – 10810”

I upgraded the JDK to version 7_ 45. After compiling and executing the jar, it works normally. I package it into the application package Unfortunately, I received this error message "lsopenurlswithrole() failed with error - 10810 as file / users /... / myapp. App" The same problem as JDK 8 early access Me too Try in info Set different settings for the "jvmversion" key in plist

Since jar itself works normally, I can solve this problem by simply calling "Java - jar. /... / myapp. Jar" by replacing Java application stub with my own executable file But I'm not sure if this is the right way to solve this problem Any suggestions? thank you.

Solution

I sort of solved the problem I looked at the processing application package I think it is mainly related to info The following lines in plist are related to:

<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>
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>