Jorl17 / jar2app

Convert any Java jar to a Mac OS X .App bundle. No external tools needed, no funky parameters, it just works.
GNU General Public License v2.0
418 stars 56 forks source link

problems building MSGViewer-1.9 - not including additonal Libraries with root jar #22

Open ghost opened 6 years ago

ghost commented 6 years ago

https://sourceforge.net/projects/msgviewer/ creates an additional subdirectory, lib/ at the same level as the application jar with additional jar library files and I do not see a way to make a reference or include this structure when rolling up the wrapper .app structure.

[ <user@machine>:~/Desktop/MSGViewer-1.9 08:34 ]$  jar2app MSGViewer.jar
jar2app 1.0.1, João Ricardo Lourenço, 2015-2017 <jorl17.8@gmail.com>.
Github page: https://github.com/Jorl17/jar2app/
Packing MSGViewer.jar into ~/Desktop/MSGViewer-1.9/MSGViewer.app
CFBundleIdentifier: com.jar2app.example.MSGViewer
CFBundleDisplayName: MSGViewer
CFBundleName: MSGViewer
CFBundleShortVersionString: 1.0.1
CFBundleSignature: ????
CFBundleVersion: 1.0.1
Retina support enabled.
---
JVMMainClassName: net.sourceforge.MSGViewer.ModuleLauncher
Executable Name (CFBundleExecutable): JavaAppLauncher
JAR Working directory: $APP_ROOT/Contents

MSGViewer.jar packaged to ~/Desktop/MSGViewer-1.9/MSGViewer.app

Fails to run. Rightly so, missing additional libraries. Moving the lib/* files into a MSGViewer.app/Contents/Java/lib subdirectory fixed the issue, but you don't have an include option additional dir's or files in the build process nor documentation to move things around.

This program is great by the way. Simple and to the point. Hope this improvement or documentation can be worked in.