Hello. I'm trying to update my java package with pbuilder before updating it on debian. This one now uses java15. Then, the control files:
Build-Depends: debhelper-compat (= 13), default-jdk, javahelper does not work anymore because default-jdk stands for java11 in the SID build environment. I tried to replace default-jdk by openjdk-11-jdk, but I have the following error: make[1]: Entering directory '/build/spview-2.0.0~rc1' jh_build --javacopts="-source 15 -target 15" --no-javadoc spview.jar sources jh_build: error: Cannot find any JAVA_HOME: aborting make[1]: *** [debian/rules:8: override_jh_build] Error 25 make[1]: Leaving directory '/build/spview-2.0.0~rc1' make: *** [debian/rules:5: binary] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 I: copying local configuration E: Failed autobuilding of package Could someone help me to fix the issue? My rules file: #!/usr/bin/make -f # debian/rules for spview %: dh $@ --with javahelper override_jh_build: jh_build --javacopts="-source 15 -target 15" --no-javadoc spview.jar sources override_dh_install: # hack to get all files into the jar (jh_build can only include *.class) (cd resources && jar uf ../spview.jar *) dh_install override_dh_auto_clean: dh_auto_clean rm -f *.jar 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