user1519979 user1519979 - 9 months ago 99
Java Question

Netbeans active packaging on ubuntu - dpkg not found

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: 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:
/home/testuser/Songs/nbproject/jfx-impl.xml:3584: Error:
JavaFX native packager requires Debian Packager tools to create DEB package, but dpkg could not be found.
BUILD FAILED (total time: 1 second)

I have installed the dpkg-dev with apt-get. the $PATH variable contains /usr/bin

I don't know how to fix that problem. anyone has an idea why netbeans does not find dpkg?


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:

command $@

which works fine.