[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    Cross Compilling linux Arm OpenJdk9 javaFx
From:       Dell Green <dell.green () ideaworks ! co ! uk>
Date:       2018-01-15 15:56:42
Message-ID: 18d3efd1-1cae-62f3-c840-621ee746a457 () ideaworks ! co ! uk
[Download RAW message or body]

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 http://hg.openjdk.java.net/openjfx/jfx-dev/rt
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/module-info.java:36: \
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/SwingNodeHelper.java:26: \
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(Resolver.java:889)
at java.base/java.lang.module.Resolver.resolve(Resolver.java:128)
at java.base/java.lang.module.Configuration.resolve(Configuration.java:357)
at java.base/java.lang.module.Configuration.resolve(Configuration.java:187)
at jdk.jlink/jdk.tools.jlink.internal.Jlink$JlinkConfiguration.resolve(Jlink.java:242)
 at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.createImageProvider(JlinkTask.java:439)
 at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.createImage(JlinkTask.java:386)
at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.run(JlinkTask.java:263)
at jdk.jlink/jdk.tools.jlink.internal.Main.run(Main.java:54)
at jdk.jlink/jdk.tools.jlink.internal.Main.main(Main.java:33)
make3<http://10.10.10.40:8080/redmine/issues/47321#fn3>: *** \
[/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


ideaworks.co.uk<http://www.ideaworks.co.uk/>





[cid:LogoEmailFootter_0829c9d5-b4ed-4548-99f2-5c300468734d.jpg]

206 Great Portland Street
London W1W 5QJ

[cid:bestcompanies2018_abc1b1a4-ffcc-4151-8af8-10f73f8862f6.png]<http://www.ideaworks.co.uk/2018/01/03/ideaworks-awarded-best-company-2018/>


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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic