mac deployment

Status
Not open for further replies.
Joined
May 15, 2009
Messages
2
Reaction score
0
Points
1
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
 
Status
Not open for further replies.

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top