I want to package my java application as a Debian Package. I'm using the build-in native packager of netbeans(8.0.1) for Deb-Packages
Following output after packing:
Execute failed: java.io.IOException: Cannot run program "command" (in directory
"/home/testuser/Songs"): error=2, No such file or directory
/home/testuser/Songs/nbproject/jfx-impl.xml:3415: The following error occurred while executing this line:
JavaFX native packager requires Debian Packager tools to create DEB package, but dpkg could not be found.
BUILD FAILED (total time: 1 second)
If you try running
ant -v build-native in your project directory, you'll see the error. The ant build script created by NetBeans is trying to run
command dpkg ... to build the package, but since "command" is a built-in shell command in /bin/bash, the test for "command" in your PATH fails.
I created a shell script named "command" in my local path with this:
#!/bin/bash command $@
which works fine.