Bug#935849: tutorial: wrong bin link
Also, the tutorial should include "jarwrapper" in the example "debian/control" so that copy just works. The section about "jarwrapper" in the tutorial gives further explanation in case anyone is interested. Maybe a hint about overwriting targets in "debian/rules" should be given as well: override_jh_build: jh_build --main ClassName Probably it would be best to add a new section to the tutorial summarizing all these findings!
Bug#935849: tutorial: wrong bin link
Am 26.08.19 um 23:31 schrieb darkdragon: > Thank you so much for your detailed answer! You're welcome! > Adding "jarwrapper" to my runtime dependencies and changing > "debian/salliere.links" to "usr/share/salliere/salliere.jar > usr/bin/salliere.jar" solved my issue. > > Nevertheless, the tutorial should also use the full path for > destination as required by dh_link: "Be sure you do specify the full > filename to both the source and destination files" > (http://man.he.net/man1/dh_link). Yes, that is a minor documentation bug. Will be fixed with another release. As I said: Questions about Java packaging should be asked on our mailing list or on IRC, the bug tracker is only for reporting bugs. signature.asc Description: OpenPGP digital signature
Bug#935849: tutorial: wrong bin link
Thank you so much for your detailed answer! Adding "jarwrapper" to my runtime dependencies and changing "debian/salliere.links" to "usr/share/salliere/salliere.jar usr/bin/salliere.jar" solved my issue. Nevertheless, the tutorial should also use the full path for destination as required by dh_link: "Be sure you do specify the full filename to both the source and destination files" (http://man.he.net/man1/dh_link).
Bug#935849: tutorial: wrong bin link
Control: severity -1 minor Am 26.08.19 um 22:11 schrieb darkdragon: > Package: javahelper > Version: 0.72.8 > > The tutorial (/usr/share/doc/javahelper/tutorial.html) contains the following: > >> Sample Application Packaging >> >> debian/salliere.links >> >> usr/share/salliere/salliere.jar usr/bin > > I don't think the jar should "replace" /usr/bin!? > What "binary" should a java application include in a debian package to > call the main() function? > In my first tests, I used java -cp /path/to/file.jar Hello, you can find more information in our Java packaging guide at https://wiki.debian.org/Java/Packaging The answer depends on your build system. Javahelper is only used for very simple Java packages or in conjunction with another sophisticated build system like Ant, Maven or Gradle. You should look into jarwrapper or java-wrapper, two different methods to start a Java application. https://wiki.debian.org/Java/Packaging/Ant#java-wrappers_versus_jarwrapper Markus signature.asc Description: OpenPGP digital signature
Bug#935849: tutorial: wrong bin link
Package: javahelper Version: 0.72.8 The tutorial (/usr/share/doc/javahelper/tutorial.html) contains the following: > Sample Application Packaging > > debian/salliere.links > > usr/share/salliere/salliere.jar usr/bin I don't think the jar should "replace" /usr/bin!? What "binary" should a java application include in a debian package to call the main() function? In my first tests, I used java -cp /path/to/file.jar