FHIR Chat · Build Failure on Clean install · committers

Stream: committers

Topic: Build Failure on Clean install


view this post on Zulip Andy Stechishin (Oct 17 2018 at 06:07):

I have a new computer that I have a clean install on. I am running macOS Mojave and after performing a git clone to download the FHIR repo and running a build I get the following error:

Publisher:

build-subprojects:

init:

build-project:
     [echo] org.hl7.fhir.utilities: /Users/stechia/Documents/develop/HL7/fhir-build/implementations/java/org.hl7.fhir.utilities/build.xml

init:

build-project:
     [echo] org.hl7.fhir.dstu3: /Users/stechia/Documents/develop/HL7/fhir-build/implementations/java/org.hl7.fhir.dstu3/build.xml

init:

build-project:
     [echo] org.hl7.fhir.r4: /Users/stechia/Documents/develop/HL7/fhir-build/implementations/java/org.hl7.fhir.r4/build.xml
    [javac] Compiling 398 source files to /Users/stechia/Documents/develop/HL7/fhir-build/implementations/java/org.hl7.fhir.r4/bin
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 8
    [javac] /Users/stechia/Documents/develop/HL7/fhir-build/implementations/java/org.hl7.fhir.r4/src/org/hl7/fhir/r4/utils/NPMPackageGenerator.java:29: error: package org.omg.IOP does not exist
    [javac] import org.omg.IOP.TAG_ALTERNATE_IIOP_ADDRESS;
    [javac]                   ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 error
    [javac] 1 warning

BUILD FAILED

view this post on Zulip Grahame Grieve (Oct 17 2018 at 06:09):

sigh. eclipse adds these damn things... I'll commit a fix. but you can just delete that line if you don't want to wait

view this post on Zulip Andy Stechishin (Oct 17 2018 at 06:09):

I thought the error might be due to Mojave installing Java 11 but after installing jenvand Java8 the error persists.

view this post on Zulip Andy Stechishin (Oct 17 2018 at 06:10):

You mean delete the line from the source? Yes, I can try.

view this post on Zulip Andy Stechishin (Oct 17 2018 at 06:11):

I am not in a _rush_ at the moment. More concerned about being able to run the build on the new shiny box

view this post on Zulip Andy Stechishin (Oct 17 2018 at 06:31):

OK further but still not success. After commenting out the above import and re-running I got:

    [javac] /Users/stechia/Documents/develop/HL7/fhir-build/implementations/java/org.hl7.fhir.validation/src/org/hl7/fhir/r4/validation/InstanceValidator.java:11: error: package javax.rmi.CORBA does not exist
    [javac] import javax.rmi.CORBA.Util;

So I commented that line out as well and now I get:

    [javac] /Users/stechia/Documents/develop/HL7/fhir-build/tools/java/org.hl7.fhir.igtools/src/org/hl7/fhir/igtools/publisher/HTLMLInspector.java:28: error: package org.omg.CosNaming does not exist
    [javac] import org.omg.CosNaming.NamingContextExtOperations;
    [javac]                         ^
    [javac] /Users/stechia/Documents/develop/HL7/fhir-build/tools/java/org.hl7.fhir.igtools/src/org/hl7/fhir/igtools/ui/IGPublisherFrame.java:27: error: package javafx.application does not exist
    [javac] import javafx.application.Platform;
    [javac]                          ^
    [javac] /Users/stechia/Documents/develop/HL7/fhir-build/tools/java/org.hl7.fhir.igtools/src/org/hl7/fhir/igtools/ui/IGPublisherFrame.java:28: error: package javafx.scene does not exist
    [javac] import javafx.scene.Scene;
    [javac]                    ^
    [javac] /Users/stechia/Documents/develop/HL7/fhir-build/tools/java/org.hl7.fhir.igtools/src/org/hl7/fhir/igtools/ui/IGPublisherFrame.java:29: error: package javafx.scene.web does not exist
    [javac] import javafx.scene.web.WebView;
    [javac]                        ^
    [javac] /Users/stechia/Documents/develop/HL7/fhir-build/tools/java/org.hl7.fhir.igtools/src/org/hl7/fhir/igtools/ui/IGPublisherFrame.java:43: error: package javafx.embed.swing does not exist
    [javac]   private javafx.embed.swing.JFXPanel txtValidation;
    [javac]                             ^
    [javac] /Users/stechia/Documents/develop/HL7/fhir-build/tools/java/org.hl7.fhir.igtools/src/org/hl7/fhir/igtools/ui/IGPublisherFrame.java:84: error: package javafx.embed.swing does not exist
    [javac]     txtValidation = new javafx.embed.swing.JFXPanel();
    [javac]                                           ^
    [javac] /Users/stechia/Documents/develop/HL7/fhir-build/tools/java/org.hl7.fhir.igtools/src/org/hl7/fhir/igtools/ui/IGPublisherFrame.java:290: error: cannot find symbol
    [javac]       Platform.runLater( () -> { // FX components need to be managed by JavaFX
    [javac]       ^
    [javac]   symbol:   variable Platform
    [javac]   location: class IGPublisherFrame.BackgroundPublisherTask
    [javac] /Users/stechia/Documents/develop/HL7/fhir-build/tools/java/org.hl7.fhir.igtools/src/org/hl7/fhir/igtools/ui/IGPublisherFrame.java:292: error: cannot find symbol
    [javac]         WebView webView = new WebView();
    [javac]         ^
    [javac]   symbol:   class WebView
    [javac]   location: class IGPublisherFrame.BackgroundPublisherTask
    [javac] /Users/stechia/Documents/develop/HL7/fhir-build/tools/java/org.hl7.fhir.igtools/src/org/hl7/fhir/igtools/ui/IGPublisherFrame.java:292: error: cannot find symbol
    [javac]         WebView webView = new WebView();
    [javac]                               ^
    [javac]   symbol:   class WebView
    [javac]   location: class IGPublisherFrame.BackgroundPublisherTask
    [javac] /Users/stechia/Documents/develop/HL7/fhir-build/tools/java/org.hl7.fhir.igtools/src/org/hl7/fhir/igtools/ui/IGPublisherFrame.java:294: error: cannot find symbol
    [javac]         txtValidation.setScene( new Scene( webView ) );
    [javac]                                     ^
    [javac]   symbol:   class Scene
    [javac]   location: class IGPublisherFrame.BackgroundPublisherTask
    [javac] /Users/stechia/Documents/develop/HL7/fhir-build/tools/java/org.hl7.fhir.igtools/src/org/hl7/fhir/igtools/ui/IGPublisherFrame.java:309: error: cannot find symbol
    [javac]     Platform.runLater( () -> { // FX components need to be managed by JavaFX
    [javac]     ^
    [javac]   symbol:   variable Platform
    [javac]   location: class IGPublisherFrame
    [javac] /Users/stechia/Documents/develop/HL7/fhir-build/tools/java/org.hl7.fhir.igtools/src/org/hl7/fhir/igtools/ui/IGPublisherFrame.java:310: error: cannot find symbol
    [javac]       WebView webView = new WebView();
    [javac]       ^
    [javac]   symbol:   class WebView
    [javac]   location: class IGPublisherFrame
    [javac] /Users/stechia/Documents/develop/HL7/fhir-build/tools/java/org.hl7.fhir.igtools/src/org/hl7/fhir/igtools/ui/IGPublisherFrame.java:310: error: cannot find symbol
    [javac]       WebView webView = new WebView();
    [javac]                             ^
    [javac]   symbol:   class WebView
    [javac]   location: class IGPublisherFrame
    [javac] /Users/stechia/Documents/develop/HL7/fhir-build/tools/java/org.hl7.fhir.igtools/src/org/hl7/fhir/igtools/ui/IGPublisherFrame.java:312: error: cannot find symbol
    [javac]       txtValidation.setScene( new Scene( webView ) );
    [javac]                                   ^
    [javac]   symbol:   class Scene
    [javac]   location: class IGPublisherFrame
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: /Users/stechia/Documents/develop/HL7/fhir-build/tools/java/org.hl7.fhir.igtools/src/org/hl7/fhir/igtools/publisher/ValidationServices.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 14 errors
    [javac] 1 warning

So it looks like there might be some JARs in the dependency list missing.

view this post on Zulip Grahame Grieve (Oct 17 2018 at 06:34):

the last one is harder. It's not Jars in the dependency list, I think, it's something else you install with Java. what version of java have you installed?

view this post on Zulip Grahame Grieve (Oct 17 2018 at 06:34):

https://docs.oracle.com/javafx/2/installation/jfxpub-installation.htm

view this post on Zulip Grahame Grieve (Oct 17 2018 at 06:35):

You only want to run JavaFX applications.

view this post on Zulip Andy Stechishin (Oct 17 2018 at 06:40):

I verified that is it running Java 8

view this post on Zulip Andy Stechishin (Oct 17 2018 at 06:41):

Mojave install Java11

view this post on Zulip Grahame Grieve (Oct 17 2018 at 06:42):

not sure what that means, but you need JavaFX

view this post on Zulip Andy Stechishin (Oct 17 2018 at 06:44):

Mojave is that latest version of macOS, it installs Java11 as the system default

view this post on Zulip Andy Stechishin (Oct 17 2018 at 06:45):

according to the forward from the above web-link, JavaFX is part of the JRE, hmmm

view this post on Zulip Andy Stechishin (Oct 17 2018 at 06:59):

Is javafx-mx.jar the only Jar needed for JavaFX?

view this post on Zulip Grahame Grieve (Oct 17 2018 at 07:00):

don't know?

view this post on Zulip David Pyke (Oct 30 2018 at 18:57):

Did you figure this out? I just did a git clone and I'm getting the same error.

view this post on Zulip Grahame Grieve (Oct 30 2018 at 19:10):

which same error?

view this post on Zulip John Moehrke (Oct 30 2018 at 19:16):

Dave, did you install Jekyll?

view this post on Zulip John Moehrke (Oct 30 2018 at 19:18):

The other recommendation is to delete the publish directory

view this post on Zulip David Pyke (Oct 30 2018 at 19:24):

Missing JavaFX. I'll find Jekyll and install it and see what that does

view this post on Zulip John Moehrke (Oct 30 2018 at 19:28):

missing jekyll strikes again

view this post on Zulip David Pyke (Oct 30 2018 at 19:31):

Okay, installing jekyll and re-cloning did not fix it.

I never said I was smart

view this post on Zulip Lloyd McKenzie (Oct 30 2018 at 19:34):

What's the specific error you're getting?

view this post on Zulip David Pyke (Oct 30 2018 at 19:34):

build-project:
[echo] org.hl7.fhir.tools: /home/loftwyr/FHIR/fhir/tools/java/org.hl7.fhir.igtools/build.xml
[mkdir] Created dir: /home/loftwyr/FHIR/fhir/tools/java/org.hl7.fhir.igtools/bin
[javac] Compiling 53 source files to /home/loftwyr/FHIR/fhir/tools/java/org.hl7.fhir.igtools/bin
[javac] warning: [options] bootstrap class path not set in conjunction with -source 8
[javac] /home/loftwyr/FHIR/fhir/tools/java/org.hl7.fhir.igtools/src/org/hl7/fhir/igtools/ui/IGPublisherFrame.java:27: error: package javafx.application does not exist
[javac] import javafx.application.Platform;
[javac] ^
[javac] /home/loftwyr/FHIR/fhir/tools/java/org.hl7.fhir.igtools/src/org/hl7/fhir/igtools/ui/IGPublisherFrame.java:28: error: package javafx.scene does not exist
[javac] import javafx.scene.Scene;
[javac] ^
[javac] /home/loftwyr/FHIR/fhir/tools/java/org.hl7.fhir.igtools/src/org/hl7/fhir/igtools/ui/IGPublisherFrame.java:29: error: package javafx.scene.web does not exist
[javac] import javafx.scene.web.WebView;
[javac] ^
[javac] /home/loftwyr/FHIR/fhir/tools/java/org.hl7.fhir.igtools/src/org/hl7/fhir/igtools/ui/IGPublisherFrame.java:43: error: package javafx.embed.swing does not exist
[javac] private javafx.embed.swing.JFXPanel txtValidation;
[javac] ^
[javac] /home/loftwyr/FHIR/fhir/tools/java/org.hl7.fhir.igtools/src/org/hl7/fhir/igtools/ui/IGPublisherFrame.java:84: error: package javafx.embed.swing does not exist
[javac] txtValidation = new javafx.embed.swing.JFXPanel();
[javac] ^

view this post on Zulip David Pyke (Oct 30 2018 at 19:35):

I've tried with Java 8 and 11

view this post on Zulip Lloyd McKenzie (Oct 30 2018 at 19:36):

And you've got a JDK, not just a JRE?

view this post on Zulip Lloyd McKenzie (Oct 30 2018 at 19:37):

And the JDK is the default one that runs?

view this post on Zulip David Pyke (Oct 30 2018 at 19:37):

Yep. Although I'll do a reinstall of the jdks just in case

view this post on Zulip Lloyd McKenzie (Oct 30 2018 at 19:39):

Only other thing I can think is that our Ivy config file is missing now that used to be there previously

view this post on Zulip Grahame Grieve (Oct 30 2018 at 19:42):

javaFX is not installed through ivy - you have to install it directly

view this post on Zulip Grahame Grieve (Oct 30 2018 at 19:42):

as an extra to the JDK

view this post on Zulip David Pyke (Oct 30 2018 at 19:43):

Since when? JavaFX has been part of the oracle distribution for years

view this post on Zulip Grahame Grieve (Oct 30 2018 at 19:44):

not in my experience.

view this post on Zulip Lloyd McKenzie (Oct 30 2018 at 19:44):

I don't remember ever installing it - and it's not in our documentation: http://wiki.hl7.org/index.php?title=FHIR_Build_Process

view this post on Zulip David Pyke (Oct 30 2018 at 19:48):

Okay, I'll muck with it and see what I can figure oiut

view this post on Zulip David Pyke (Nov 02 2018 at 17:53):

Found my problem:
https://bugs.launchpad.net/ubuntu/+source/openjfx/+bug/1799946


Last updated: Apr 12 2022 at 19:14 UTC