0

I'm having trouble understanding why

javapackager -deploy -native installer -BlicenseFile=license.rtf [...]

command will not find the file license.rtf.

The license.rtf file is in the root of the JAR. The packager builds the native installers when the -BlicenseFile argument is missing. But refuses when the argument is given. Can anyone help?

The application is JavaFX 8.

1 Answers1

0

use this

javapackager -deploy -native installer -srcfiles license.rtf -BlicenseFile=license.rtf [...]

if you really claim it is in the root directory,

the -srcfiles addition adds the licensefile to the temp directory that javapackager uses to bundle your binaries

Elltz
  • 10,730
  • 4
  • 31
  • 59
  • Hi Elltz, thank you for your help. I found it's best to not put the license.rtf inside the app's jar; instead to put the app's jar and license file in the root -srcdir side by side. – Geoff Hayward Nov 27 '16 at 22:53