[Debian-med-packaging] Bug#875789: Bug#875789: FTBFS with Java 9: tests error out

Olivier Sallou olivier.sallou at irisa.fr
Fri Sep 15 12:21:59 UTC 2017



On 09/15/2017 01:24 PM, Andreas Tille wrote:
> control: tags -1 help
>
> Sorry, I have no idea how to fix this. :-(
> Any hint is welcome.
you need to add to compil the option "--add-modules java.se.ee".  The pb
is it works for Java 9 but not for Java 8.
To match both, you can do something like:

                <if><equals arg1="${ant.java.version}" arg2="1.8" />
                <then>
                    <javac ....></javac>
                </then>
                <else>
                    <javac ....><compilerarg line="--add-modules
java.se.ee"/></javac>
                </else>
                </if>


In build.xml

Else, an option is to build for Java 1.8 specifically specifying

<javac ... source="1.8" target="1.8">
</javac>

Compilation should work this way. At runtime (execution) with Java9,
user has to add "--add-modules java.se.ee" to the java command-line.
The problem, again, is that if user is using java8, this command is not
recognized.


>
> Kind regards
>
>       Andreas.
>

-- 
Olivier Sallou
IRISA / University of Rennes 1
Campus de Beaulieu, 35000 RENNES - FRANCE
Tel: 02.99.84.71.95

gpg key id: 4096R/326D8438  (keyring.debian.org)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438



More information about the Debian-med-packaging mailing list