> De: "Cyril Richard" <cyril.rich...@u-bourgogne.fr>
> À: "Debian Java List" <debian-java@lists.debian.org>
> Envoyé: Vendredi 27 Septembre 2019 16:25:33
> Objet: Error with jh_build

> Dear you, I'm currently trying to build a debian package of a java 
> application.
> The application should be host here: [
> https://salsa.debian.org/science-team/spview |
> https://salsa.debian.org/science-team/spview  ] (I'm waiting for permission
> access to push the code).
> For now I'm facing to one issue:

> The structure of my sources is as follow:
> -- resources
> -- sources
> -- test
> -- debian

> I wrote the d/rules like that:

> #!/usr/bin/make -f
> # debian/rules for spview

> %:
> dh $@ --with javahelper --sourcedirectory=sources

> override_jh_build:
> jh_build --javacopts="-source 1.8 -target 1.8" spview.jar sources

looks to be javadoc related step, try 

jh_build --javacopts="-source 1.8 -target 1.8" --javadoc-opts="-source 1.8" 
..... 

> And I have the following error:

> make[1]: Entering directory '/build/spview-2.0.0~beta1'
> jh_build --javacopts="-source 1.8 -target 1.8" spview.jar sources
> warning: [options] bootstrap class path not set in conjunction with -source 8
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> 1 warning
> sources/org/spview/preferences/WindowHandler.java:29: error: lambda 
> expressions
> are not supported in -source 7
> CoalescedEventUpdater updater = new CoalescedEventUpdater(400, () ->
> updatePref(frame, prefs));
> ^
> (use -source 8 or higher to enable lambda expressions)
> sources/org/spview/preferences/CoalescedEventUpdater.java:10: error: lambda
> expressions are not supported in -source 7
> timer = new Timer(delay, e -> {
> ^
> (use -source 8 or higher to enable lambda expressions)
> 2 errors
> jh_build: find sources -name '*.java' -and -type f -print0 | xargs -s 512000 
> -0
> /usr/lib/jvm/default-java/bin/javadoc -locale en_US -classpath
> :debian/_jh_build.spview -d debian/_jh_build.javadoc/api -quiet -encoding
> ISO8859-1 -source 1.7 -notimestamp returned exit code 123
> make[1]: *** [debian/rules:8: override_jh_build] Error 255
> make[1]: Leaving directory '/build/spview-2.0.0~beta1'
> make: *** [debian/rules:5: build] Error 2
> dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

> Could you please explain me what I am doing wrong?

> Cheers,

> Cyril RICHARD - Ingénieur de Recherche CNRS

> Equipe Spectroscopie Moléculaire, Processus Collisionnels et Applications
> Département Interactions et Contrôle quantiques (ICQ)

> Laboratoire Interdisciplinaire Carnot de Bourgogne, UMR 6303 CNRS-Univ.
> Bourgogne Franche-Comté
> 9 Avenue Alain Savary, BP 47 870, F-21078 DIJON Cedex FRANCE

> Tel. : +33 (0)3 80 39 59 96 / Fax : +33 (0)3 80 39 59 71
> E-mail : cyril.rich...@u-bourgogne.fr
> Web : http://icb.u-bourgogne.fr

Reply via email to