Cross Compilling linux Arm OpenJdk9 javaFx

Dell Green at
Mon Jan 15 15:56:42 UTC 2018

Currently use Arm java8 from Oracle and compile Openjfx for Arm and overlay libraries for current product line. Looking to test Java9 on Arm and upgrade product line in next generation release.

Cross Compiling openJdk9 for Arm works fine

Trying to compile openJfx from
Running gradle -PCOMPILE_TARGETS=armv6hf produces swing errors even though  COMPILE_SWING is false in build.gradle.

home/dell/Documents/IwOpenJdk9/src/openjfx/rt/modules/javafx.swing/src/main/java/ error: file should be on source path, or on patch path for module
module javafx.swing {

/home/dell/Documents/IwOpenJdk9/src/openjfx/rt/modules/javafx.swing/src/main/java/com/sun/javafx/embed/swing/ error: file should be on source path, or on patch path for module
package com.sun.javafx.embed.swing;....

Problem seems to be with build.gradle line 2154 which has swing tasks being disabled if COMPILE_SWING is false. However this code is commented out.

/* should not be built, but needed in JMX
    tasks.all {
        if (!COMPILE_SWING) it.enabled = false

if I uncomment it these errors go away and the build completes.

The resulting armv6hf-modular-sdk folder created by the build is added to jdk configure script with '-with-import-modules=' option as per build instructions.
Building the jdk now fails with java.base module FindException, are these 2 problems related?

Note: Recompile with -Xlint:unchecked for details.
Error: Module javafx.base not found
java.lang.module.FindException: Module javafx.base not found
at java.base/java.lang.module.Resolver.findFail(
at java.base/java.lang.module.Resolver.resolve(
at java.base/java.lang.module.Configuration.resolve(
at java.base/java.lang.module.Configuration.resolve(
at jdk.jlink/$JlinkConfiguration.resolve(
at jdk.jlink/
at jdk.jlink/
at jdk.jlink/
at jdk.jlink/
at jdk.jlink/
make3<>: *** [/home/dell/Documents/IwOpenJdk9/src/jdk9dev/build/linux-arm-normal-client-release/images/jre/bin/java] Error 1
Images.gmk:144: recipe for target '/home/dell/Documents/IwOpenJdk9/src/jdk9dev/build/linux-arm-normal-client-release/images/jre/bin/java' failed

Dell Green

Software Manager

t: (+44) 203 668 9870<>


206 Great Portland Street
London W1W 5QJ


This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. Any views or opinions presented are solely those of the author and do not necessarily represent those of Ideaworks Limited. Ideaworks (London) Limited, 206 Great Portland Street, London, W1W 5QJ. Company Registration No. 3943726

More information about the openjfx-dev mailing list