Hello Andreas,

Am 18.03.2018 um 09:30 schrieb Andreas Tille:
> Control: tags -1 help
> 
> On Sat, Mar 17, 2018 at 10:07:50PM +0200, Adrian Bunk wrote:
>> ...
>> CMake Error at docs/CMakeLists.txt:212 (message):
>>   Cannot generate java documentation, please specify the Java_JAVADOC_JAR.
> 
> I need to admit I have no idea how to fix this.  Any help from the
> debian-java team?
> 
> Kind regards
> 
>       Andreas.


This issue is caused by the removal of tools.jar in OpenJDK 9. In
debian/rules you can remove this line:

CMAKE_OPTS += -DJava_JAVADOC_JAR=$(JDK_PATH)/lib/tools.jar
-DJAVA_INCLUDE_PATH=$(JAVA_INCLUDE_PATH)

and then you should patch docs/CMakeLists.txt and remove this line:

if (NOT EXISTS "${Java_JAVADOC_JAR}")
      message(FATAL_ERROR "Cannot generate java documentation, please
specify the Java_JAVADOC_JAR.")
endif()

This will work around the FTBFS because tools.jar is "only" needed on
the classpath when building the documentation. The build succeeds
afterwards but there might be some documentation for classes missing
which were provided by tools.jar. I would report this as an upstream bug.

Regards,

Markus

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to