我已经花了一整天的时间试图弄清楚我做错了什么。我无法将 Java 应用程序打包成 .deb 包。
我正在执行的步骤如下:1)将 src 文件复制到名为:something-1.2 的文件夹中2)在 something-1.2 所在的目录中运行 jh_makepkg3)在 something-1.2/debian/ 中:
- 编辑规则文件(仅添加 CLASSPATH)
- 编辑控制文件添加版本和主页
- 编辑 something.install 添加一些要复制的文件
- 编辑 something.manifest 编辑 Main-Class
4)我在 something-1.2 文件夹中运行 dpkg-buildpackage -d,出现错误:
dpkg-buildpackage -d
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package something
dpkg-buildpackage: source version 1.2-1
dpkg-buildpackage: source changed by <[email protected]>
dpkg-buildpackage: host architecture i386
debian/rules clean
dh --with javahelper clean
dh_testdir
dh_auto_clean
dh_clean
jh_clean
dpkg-source -b something-1.2
dpkg-source: warning: unknown information field 'Version' in input data in general section of control info file
dpkg-source: info: using source format `1.0'
dpkg-source: info: building something in something_1.2-1.tar.gz
dpkg-source: info: building something in something_1.2-1.dsc
debian/rules build
dh --with javahelper build
dh_testdir
dh_auto_configure
dh_auto_build
jh_build
find src -name *.java -and -type f -print0 | xargs -0 /usr/lib/jvm/java-6-openjdk/bin/javac -cp /home/lib/jdom.jar:/home/lib/mysql-connector-java-5.1.6-bin.jar:debian/_jh_build.something -d debian/_jh_build.something
fastjar -c -f /home/user/FP/something-1.2/something.jar -m ../_jh_manifest.something probe
dh_auto_test
debian/rules binary
dh --with javahelper binary
dh_testroot
dh_prep
dh_installdirs
dh_auto_install
dh_install
dh_installdocs
dh_installchangelogs
dh_installexamples
dh_installman
dh_installcatalogs
dh_installcron
dh_installdebconf
dh_installcatalogs
dh_installemacsen
dh_installifupdown
dh_installinfo
dh_installinit
dh_installmenu
dh_installmime
dh_installmodules
dh_installlogcheck
dh_installlogrotate
dh_installpam
dh_installppp
dh_installudev
dh_installwm
dh_installxfonts
dh_bugfiles
dh_lintian
dh_gconf
dh_icons
dh_perl
dh_pysupport
dh_usrlocal
dh_link
jh_installlibs
jh_classpath
jh_manifest
jh_exec
jh_depends
make: *** [binary] Error 1
dpkg-buildpackage: error: debian/rules binary gave error exit status 2
知道我做错了什么吗?有什么建议吗?
提前致谢。