1

I've used javapackager to create installer for my java program, in order to run into mac OS X. There is some files and a single folder which needs to be bundle while performing the bundalation process from javapackager. My programs folder structure looks like this:

enter image description here

Now I issued the following command from terminal:

$ /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin/javapackager -deploy -native dmg -Bruntime=jre1.8.0_65.jre/ -srcfiles IPSettingScreen.jar  -srcfiles configuration.properties -srcfiles vremployee.jar -srcdir "native" -appclass ipsettingscreen.IPSettingScreen -name vr-employee -outdir deploy/ -outfile vr-employee -v

It sucessfully bundeld into the vr-employee.dmg, now if I installed vr-employee.dmg and look into the program installation directory there I could not found native folder which is library folder. In order to run my java program that native folder should be exist. Now my question is how to add folder into that bundled? Thanks!!

Dhiren Hamal
  • 874
  • 1
  • 12
  • 31

1 Answers1

3

Try to simply replace

-srcdir "native"

with

-srcfiles native

in your command

Nicolas Filotto
  • 43,537
  • 11
  • 94
  • 122