hi everyone,
I hope I can get some info here, otherwise, please redirect to another more specific forum.
I'm deploying an application for Mac, it is not a common application in term of structure. It is basically an Adobe AIR application but started by a java class.
Here is the structure of the app:
/MyApp/Info.plist
/MyApp/MacOS/
/MyApp/MacOS/JavaApplicationStub (this starts the runnable jar)
/MyApp/MacOS/SomaUI (this is started by the runnable jar and starts the AIR app)
/MyApp/PkgInfo
/MyApp/Resources/
/MyApp/Resources/Java/
/MyApp/Resources/Java/MyApp.jar
/MyApp/Resources/icons.icns
/MyApp/Resources/rest of my air application...
when I type in the terminal:
java -jar MyApp.jar
java starts, start the air app (which is basically the content of a AIR app install: MyAirApp.app)
Everything works so far.
But when I try to start the real app (made with jar Bundler) by double clicking on it, I got:
LSOpenFromURLSpec() failed with error -10810 for the file /Users/romuald/Desktop/MyApp/MyApp.app.
I guess my runnable jar is not found?
Here is my 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>MyApp</string>
<key>CFBundleVersion</key>
<string>10.2</string>
<key>CFBundleAllowMixedLocalizations</key>
<string>true</string>
<key>CFBundleExecutable</key>
<string>JavaApplicationStub</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleIconFile</key>
<string>icon.icns</string>
<key>Java</key>
<dict>
<key>MainClass</key>
<string>Main</string>
<key>JVMVersion</key>
<string>1.5*</string>
<key>ClassPath</key>
<string>$JAVAROOT/MyApp.jar</string>
</dict>
</dict>
</plist>
Can anyone tells me what I'm missing?
Thanks in advance.
Romu
I hope I can get some info here, otherwise, please redirect to another more specific forum.
I'm deploying an application for Mac, it is not a common application in term of structure. It is basically an Adobe AIR application but started by a java class.
Here is the structure of the app:
/MyApp/Info.plist
/MyApp/MacOS/
/MyApp/MacOS/JavaApplicationStub (this starts the runnable jar)
/MyApp/MacOS/SomaUI (this is started by the runnable jar and starts the AIR app)
/MyApp/PkgInfo
/MyApp/Resources/
/MyApp/Resources/Java/
/MyApp/Resources/Java/MyApp.jar
/MyApp/Resources/icons.icns
/MyApp/Resources/rest of my air application...
when I type in the terminal:
java -jar MyApp.jar
java starts, start the air app (which is basically the content of a AIR app install: MyAirApp.app)
Everything works so far.
But when I try to start the real app (made with jar Bundler) by double clicking on it, I got:
LSOpenFromURLSpec() failed with error -10810 for the file /Users/romuald/Desktop/MyApp/MyApp.app.
I guess my runnable jar is not found?
Here is my 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>MyApp</string>
<key>CFBundleVersion</key>
<string>10.2</string>
<key>CFBundleAllowMixedLocalizations</key>
<string>true</string>
<key>CFBundleExecutable</key>
<string>JavaApplicationStub</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleIconFile</key>
<string>icon.icns</string>
<key>Java</key>
<dict>
<key>MainClass</key>
<string>Main</string>
<key>JVMVersion</key>
<string>1.5*</string>
<key>ClassPath</key>
<string>$JAVAROOT/MyApp.jar</string>
</dict>
</dict>
</plist>
Can anyone tells me what I'm missing?
Thanks in advance.
Romu