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.jarby 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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -