java - OSX App Bundle, main jar execs second jar in the same bundle -
i have osx app bundle .app
containing 1 .jar
file named client.jar
. client.jar
set "to run" javaapplauncher
in info.plist
. start .jar
named server.jar
by calling runtime.getruntime.exec("java -jar server.jar")
in client.jar
file. issue is, not know place other server.jar
file run properly.
the current file tree is:
- contents |- info.plist |- java |- client.jar |- macos |- javaapplauncher |- plugins |- resources |- icon.icns |- en.lproj
this bundle has been created using jar2app script.
the info.plist
:
</plist> <dict> <key>cfbundledevelopmentregion</key> <string>english</string> <key>cfbundleexecutable</key> <string>javaapplauncher</string> <key>cfbundleiconfile</key> <string>icon.icns</string> <key>cfbundleidentifier</key> <string>com.jar2app.example.myapp</string> <key>cfbundledisplayname</key> <string>myapp</string> <key>cfbundleinfodictionaryversion</key> <string>6.0</string> <key>cfbundlename</key> <string>myapp</string> <key>cfbundlepackagetype</key> <string>appl</string> <key>nsprincipalclass</key> <string>nsapplication</string> <key>nshighresolutioncapable</key> <string>true</string> <key>cfbundleshortversionstring</key> <string>1.0.0</string> <key>cfbundlesignature</key> <string>????</string> <key>cfbundleversion</key> <string>1.0.0</string> <key>nshumanreadablecopyright</key> <string></string> <key>jvmmainclassname</key> <string>clientmainclass</string> <key>jvmoptions</key> <array> <string>-duser.dir=$app_root/contents</string> </array> <key>jvmarguments</key> <array> </array> </dict> </plist>
second thing, proper solution? i'd run server.jar
time in background after first bundle run. how that?
thank :)
Comments
Post a Comment