ControlSystemStudio / phoebus

A framework and set of tools to monitor and operate large scale control systems, such as the ones in the accelerator community.
http://phoebus.org/
Eclipse Public License 1.0
83 stars 87 forks source link

Try to compile phoebus on Ubuntu 16.04.5 LTS #341

Closed hjunkes closed 5 years ago

hjunkes commented 5 years ago

Can't compile on Ubuntu 16.04.5 LTS with java-9-openjdk-amd64 or jdk-10.0.2.

[h1@earth phoebus (master)]$ ant clean dist Buildfile: /home/h1/PHOEBUS/phoebus/build.xml

clean:

clean: [delete] Deleting directory /home/h1/PHOEBUS/phoebus/core/framework/target

clean:

...

clean:

core:

core-framework: [mkdir] Created dir: /home/h1/PHOEBUS/phoebus/core/framework/target/classes [javac] Compiling 62 source files to /home/h1/PHOEBUS/phoebus/core/framework/target/classes [javac] /home/h1/PHOEBUS/phoebus/core/framework/src/main/java/org/phoebus/framework/spi/MenuEntry.java:7: error: package javafx.scene.image does not exist [javac] import javafx.scene.image.Image; [javac] ^ [javac] /home/h1/PHOEBUS/phoebus/core/framework/src/main/java/org/phoebus/framework/spi/MenuEntry.java:43: error: cannot find symbol [javac] public default Image getIcon() [javac] ^ [javac] symbol: class Image [javac] location: interface MenuEntry [javac] /home/h1/PHOEBUS/phoebus/core/framework/src/main/java/org/phoebus/framework/spi/ToolbarEntry.java:3: error: package javafx.scene.image does not exist [javac] import javafx.scene.image.Image; [javac] ^ [javac] /home/h1/PHOEBUS/phoebus/core/framework/src/main/java/org/phoebus/framework/spi/ToolbarEntry.java:24: error: cannot find symbol [javac] public default Image getIcon() [javac] ^ [javac] symbol: class Image [javac] location: interface ToolbarEntry [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] 4 errors

BUILD FAILED /home/h1/PHOEBUS/phoebus/build.xml:65: The following error occurred while executing this line: /home/h1/PHOEBUS/phoebus/core/framework/build.xml:6: Compile failed; see the compiler error output for details.

Total time: 3 seconds

[h1@earth phoebus (master)]$ mvn clean install WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] phoebus (parent) [INFO] dependencies [INFO] install-jars [INFO] phoebus-target [INFO] core [INFO] core-framework [INFO] core-security [INFO] core-util [INFO] core-vtype [INFO] core-pv [INFO] core-ui [INFO] core-logbook [INFO] core-types [INFO] core-formula [INFO] core-email [INFO] app [INFO] app-greetings [INFO] app-logConfiguration [INFO] app-probe [INFO] app-email [INFO] app-logbook [INFO] app-logbook-utility [INFO] app-logbook-ui [INFO] app-pvtable [INFO] app-pvtree [INFO] app-update [INFO] app-filebrowser [INFO] app-logbook-inmemory [INFO] app-logbook-olog [INFO] app-rtplot [INFO] app-databrowser [INFO] app-display [INFO] app-display-model [INFO] app-display-representation [INFO] app-display-representation-javafx [INFO] app-display-runtime [INFO] app-display-editor [INFO] app-alarm [INFO] app-alarm-model [INFO] app-alarm-ui [INFO] app-alarm-logging-ui [INFO] app-scan [INFO] app-scan-model [INFO] app-scan-client [INFO] app-scan-ui [INFO] app-channel [INFO] app-channel-channelfinder [INFO] app-channel-utility [INFO] app-channel-views [INFO] product [INFO] services [INFO] service-alarm-server [INFO] service-archive-engine [INFO] service-scan-server [INFO] service-alarm-logger [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building phoebus (parent) 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ parent --- [INFO] [INFO] --- maven-failsafe-plugin:2.22.0:integration-test (default) @ parent --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-failsafe-plugin:2.22.0:verify (default) @ parent --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ parent --- [INFO] Installing /home/h1/PHOEBUS/phoebus/pom.xml to /home/h1/.m2/repository/org/phoebus/parent/0.0.1-SNAPSHOT/parent-0.0.1-SNAPSHOT.pom [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building dependencies 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ dependencies --- [INFO] [INFO] --- maven-failsafe-plugin:2.22.0:integration-test (default) @ dependencies --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-failsafe-plugin:2.22.0:verify (default) @ dependencies --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ dependencies --- [INFO] Installing /home/h1/PHOEBUS/phoebus/dependencies/pom.xml to /home/h1/.m2/repository/org/phoebus/dependencies/0.0.1-SNAPSHOT/dependencies-0.0.1-SNAPSHOT.pom [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building install-jars 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ install-jars --- [INFO] Deleting /home/h1/PHOEBUS/phoebus/dependencies/install-jars/target [INFO] [INFO] --- maven-install-plugin:2.5.2:install-file (install-pbraw) @ install-jars --- [INFO] Installing /home/h1/PHOEBUS/phoebus/dependencies/install-jars/lib/pbraw/pbrawclient-0.0.8.jar to /home/h1/.m2/repository/org/epics/pbrawclient/0.0.8/pbrawclient-0.0.8.jar [INFO] Installing /home/h1/PHOEBUS/phoebus/dependencies/install-jars/lib/pbraw/pom.xml to /home/h1/.m2/repository/org/epics/pbrawclient/0.0.8/pbrawclient-0.0.8.pom [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ install-jars --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /home/h1/PHOEBUS/phoebus/dependencies/install-jars/src/main/resources [INFO] skip non existing resourceDirectory /home/h1/PHOEBUS/phoebus/dependencies/install-jars/src/main/java [INFO] [INFO] --- maven-compiler-plugin:3.6.2:compile (default-compile) @ install-jars --- [INFO] No sources to compile [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ install-jars --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /home/h1/PHOEBUS/phoebus/dependencies/install-jars/src/test/resources [INFO] skip non existing resourceDirectory /home/h1/PHOEBUS/phoebus/dependencies/install-jars/src/test/java [INFO] [INFO] --- maven-compiler-plugin:3.6.2:testCompile (default-testCompile) @ install-jars --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.20:test (default-test) @ install-jars --- [INFO] No tests to run. [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ install-jars --- [WARNING] JAR will be empty - no content was marked for inclusion! [INFO] Building jar: /home/h1/PHOEBUS/phoebus/dependencies/install-jars/target/install-jars-0.0.1-SNAPSHOT.jar [INFO] [INFO] --- maven-failsafe-plugin:2.22.0:integration-test (default) @ install-jars --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-failsafe-plugin:2.22.0:verify (default) @ install-jars --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ install-jars --- [INFO] Installing /home/h1/PHOEBUS/phoebus/dependencies/install-jars/target/install-jars-0.0.1-SNAPSHOT.jar to /home/h1/.m2/repository/org/phoebus/install-jars/0.0.1-SNAPSHOT/install-jars-0.0.1-SNAPSHOT.jar [INFO] Installing /home/h1/PHOEBUS/phoebus/dependencies/install-jars/pom.xml to /home/h1/.m2/repository/org/phoebus/install-jars/0.0.1-SNAPSHOT/install-jars-0.0.1-SNAPSHOT.pom [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building phoebus-target 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ phoebus-target --- [INFO] Deleting /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ phoebus-target --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/src/main/resources [INFO] skip non existing resourceDirectory /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/src/main/java [INFO] [INFO] --- maven-compiler-plugin:3.6.2:compile (default-compile) @ phoebus-target --- [INFO] No sources to compile [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ phoebus-target --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/src/test/resources [INFO] skip non existing resourceDirectory /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/src/test/java [INFO] [INFO] --- maven-compiler-plugin:3.6.2:testCompile (default-testCompile) @ phoebus-target --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.20:test (default-test) @ phoebus-target --- [INFO] No tests to run. [INFO] [INFO] --- maven-dependency-plugin:2.8:copy-dependencies (copy-dependencies) @ phoebus-target --- [INFO] Copying epics-pvaccess-5.1.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/epics-pvaccess-5.1.1.jar [INFO] Copying jackson-annotations-2.9.4.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/jackson-annotations-2.9.4.jar [INFO] Copying connect-api-1.1.0.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/connect-api-1.1.0.jar [INFO] Copying jetty-security-9.4.9.v20180320.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/jetty-security-9.4.9.v20180320.jar [INFO] Copying lucene-analyzers-common-7.3.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/lucene-analyzers-common-7.3.1.jar [INFO] Copying postgresql-42.1.4.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/postgresql-42.1.4.jar [INFO] Copying elasticsearch-secure-sm-6.3.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/elasticsearch-secure-sm-6.3.1.jar [INFO] Copying httpcore-4.4.5.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/httpcore-4.4.5.jar [INFO] Copying javax.json-1.0.4.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/javax.json-1.0.4.jar [INFO] Copying lucene-sandbox-7.3.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/lucene-sandbox-7.3.1.jar [INFO] Copying jaxb-api-2.3.0.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/jaxb-api-2.3.0.jar [INFO] Copying javax.mail-1.6.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/javax.mail-1.6.1.jar [INFO] Copying snappy-java-1.1.7.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/snappy-java-1.1.7.1.jar [INFO] Copying jetty-servlet-9.4.9.v20180320.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/jetty-servlet-9.4.9.v20180320.jar [INFO] Copying jackson-core-2.9.4.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/jackson-core-2.9.4.jar [INFO] Copying lucene-grouping-7.3.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/lucene-grouping-7.3.1.jar [INFO] Copying jca-2.4.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/jca-2.4.1.jar [INFO] Copying hppc-0.7.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/hppc-0.7.1.jar [INFO] Copying jfxtras-fxml-9.0-r1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/jfxtras-fxml-9.0-r1.jar [INFO] Copying validation-api-1.1.0.Final.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/validation-api-1.1.0.Final.jar [INFO] Copying rank-eval-client-6.3.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/rank-eval-client-6.3.1.jar [INFO] Copying hamcrest-all-1.3.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/hamcrest-all-1.3.jar [INFO] Copying lucene-backward-codecs-7.3.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/lucene-backward-codecs-7.3.1.jar [INFO] Copying testfx-junit-4.0.13-alpha.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/testfx-junit-4.0.13-alpha.jar [INFO] Copying jfxtras-common-9.0-r1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/jfxtras-common-9.0-r1.jar [INFO] Copying derby-10.14.1.0.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/derby-10.14.1.0.jar [INFO] Copying rocksdbjni-5.7.3.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/rocksdbjni-5.7.3.jar [INFO] Copying httpasyncclient-4.1.2.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/httpasyncclient-4.1.2.jar [INFO] Copying t-digest-3.2.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/t-digest-3.2.jar [INFO] Copying HdrHistogram-2.1.9.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/HdrHistogram-2.1.9.jar [INFO] Copying rxjava-2.1.14.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/rxjava-2.1.14.jar [INFO] Copying activation-1.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/activation-1.1.jar [INFO] Copying testfx-core-4.0.13-alpha.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/testfx-core-4.0.13-alpha.jar [INFO] Copying jackson-dataformat-cbor-2.8.10.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/jackson-dataformat-cbor-2.8.10.jar [INFO] Copying pbrawclient-0.0.8.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/pbrawclient-0.0.8.jar [INFO] Copying kafka-clients-1.1.0.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/kafka-clients-1.1.0.jar [INFO] Copying commons-codec-1.10.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/commons-codec-1.10.jar [INFO] Copying jsr311-api-1.1.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/jsr311-api-1.1.1.jar [INFO] Copying commonj.sdo-2.1.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/commonj.sdo-2.1.1.jar [INFO] Copying joda-time-2.9.9.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/joda-time-2.9.9.jar [INFO] Copying javax.persistence-2.2.0.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/javax.persistence-2.2.0.jar [INFO] Copying javax.servlet-api-3.1.0.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/javax.servlet-api-3.1.0.jar [INFO] Copying jersey-multipart-1.19.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/jersey-multipart-1.19.jar [INFO] Copying py4j-0.10.2.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/py4j-0.10.2.1.jar [INFO] Copying org.eclipse.paho.client.mqttv3-1.2.0.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/org.eclipse.paho.client.mqttv3-1.2.0.jar [INFO] Copying elasticsearch-rest-client-6.3.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/elasticsearch-rest-client-6.3.1.jar [INFO] Copying jackson-databind-2.9.4.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/jackson-databind-2.9.4.jar [INFO] Copying lz4-java-1.4.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/lz4-java-1.4.jar [INFO] Copying jackson-dataformat-smile-2.8.10.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/jackson-dataformat-smile-2.8.10.jar [INFO] Copying jackson-datatype-jsr310-2.8.10.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/jackson-datatype-jsr310-2.8.10.jar [INFO] Copying lucene-queryparser-7.3.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/lucene-queryparser-7.3.1.jar [INFO] Copying lucene-misc-7.3.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/lucene-misc-7.3.1.jar [INFO] Copying kafka-streams-1.1.0.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/kafka-streams-1.1.0.jar [INFO] Copying lucene-memory-7.3.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/lucene-memory-7.3.1.jar [INFO] Copying freetts-1.2.2.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/freetts-1.2.2.jar [INFO] Copying assertj-core-3.9.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/assertj-core-3.9.1.jar [INFO] Copying jersey-client-1.19.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/jersey-client-1.19.jar [INFO] Copying eclipselink-2.7.0.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/eclipselink-2.7.0.jar [INFO] Copying lucene-spatial-7.3.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/lucene-spatial-7.3.1.jar [INFO] Copying snakeyaml-1.17.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/snakeyaml-1.17.jar [INFO] Copying httpclient-4.5.2.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/httpclient-4.5.2.jar [INFO] Copying jackson-dataformat-yaml-2.8.10.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/jackson-dataformat-yaml-2.8.10.jar [INFO] Copying lucene-highlighter-7.3.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/lucene-highlighter-7.3.1.jar [INFO] Copying jetty-server-9.4.9.v20180320.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/jetty-server-9.4.9.v20180320.jar [INFO] Copying log4j-api-2.9.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/log4j-api-2.9.1.jar [INFO] Copying hamcrest-core-1.3.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/hamcrest-core-1.3.jar [INFO] Copying lucene-suggest-7.3.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/lucene-suggest-7.3.1.jar [INFO] Copying mimepull-1.9.3.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/mimepull-1.9.3.jar [INFO] Copying javax.activation-1.2.0.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/javax.activation-1.2.0.jar [INFO] Copying reactive-streams-1.0.2.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/reactive-streams-1.0.2.jar [INFO] Copying jfxtras-agenda-9.0-r1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/jfxtras-agenda-9.0-r1.jar [INFO] Copying jsch-0.1.54.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/jsch-0.1.54.jar [INFO] Copying jetty-util-9.4.9.v20180320.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/jetty-util-9.4.9.v20180320.jar [INFO] Copying mysql-connector-java-5.1.45.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/mysql-connector-java-5.1.45.jar [INFO] Copying jetty-http-9.4.9.v20180320.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/jetty-http-9.4.9.v20180320.jar [INFO] Copying parent-join-client-6.3.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/parent-join-client-6.3.1.jar [INFO] Copying epics-pvdata-6.1.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/epics-pvdata-6.1.1.jar [INFO] Copying jna-4.5.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/jna-4.5.1.jar [INFO] Copying jfxtras-controls-9.0-r1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/jfxtras-controls-9.0-r1.jar [INFO] Copying lucene-spatial3d-7.3.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/lucene-spatial3d-7.3.1.jar [INFO] Copying guava-21.0.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/guava-21.0.jar [INFO] Copying objenesis-1.0.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/objenesis-1.0.jar [INFO] Copying jersey-core-1.19.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/jersey-core-1.19.jar [INFO] Copying lucene-queries-7.3.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/lucene-queries-7.3.1.jar [INFO] Copying aggs-matrix-stats-client-6.3.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/aggs-matrix-stats-client-6.3.1.jar [INFO] Copying protobuf-java-2.4.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/protobuf-java-2.4.1.jar [INFO] Copying org.eclipse.jgit-5.0.3.201809091024-r.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/org.eclipse.jgit-5.0.3.201809091024-r.jar [INFO] Copying mockito-core-1.9.5.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/mockito-core-1.9.5.jar [INFO] Copying httpcore-nio-4.4.5.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/httpcore-nio-4.4.5.jar [INFO] Copying connect-json-1.1.0.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/connect-json-1.1.0.jar [INFO] Copying elasticsearch-cli-6.3.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/elasticsearch-cli-6.3.1.jar [INFO] Copying lucene-join-7.3.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/lucene-join-7.3.1.jar [INFO] Copying install-jars-0.0.1-SNAPSHOT.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/install-jars-0.0.1-SNAPSHOT.jar [INFO] Copying lucene-spatial-extras-7.3.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/lucene-spatial-extras-7.3.1.jar [INFO] Copying jopt-simple-5.0.2.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/jopt-simple-5.0.2.jar [INFO] Copying lucene-core-7.3.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/lucene-core-7.3.1.jar [INFO] Copying JavaEWAH-1.1.6.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/JavaEWAH-1.1.6.jar [INFO] Copying elasticsearch-rest-high-level-client-6.3.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/elasticsearch-rest-high-level-client-6.3.1.jar [INFO] Copying junit-4.12.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/junit-4.12.jar [INFO] Copying jmatio-1.2.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/jmatio-1.2.jar [INFO] Copying jetty-io-9.4.9.v20180320.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/jetty-io-9.4.9.v20180320.jar [INFO] Copying slf4j-api-1.7.25.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/slf4j-api-1.7.25.jar [INFO] Copying commons-logging-1.1.3.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/commons-logging-1.1.3.jar [INFO] Copying jzlib-1.1.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/jzlib-1.1.1.jar [INFO] Copying jersey-server-1.19.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/jersey-server-1.19.jar [INFO] Copying jython-standalone-2.7.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/jython-standalone-2.7.1.jar [INFO] Copying elasticsearch-core-6.3.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/elasticsearch-core-6.3.1.jar [INFO] Copying elasticsearch-x-content-6.3.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/elasticsearch-x-content-6.3.1.jar [INFO] Copying elasticsearch-6.3.1.jar to /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/lib/elasticsearch-6.3.1.jar [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ phoebus-target --- [WARNING] JAR will be empty - no content was marked for inclusion! [INFO] Building jar: /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/phoebus-target-0.0.1-SNAPSHOT.jar [INFO] [INFO] --- maven-failsafe-plugin:2.22.0:integration-test (default) @ phoebus-target --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-failsafe-plugin:2.22.0:verify (default) @ phoebus-target --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ phoebus-target --- [INFO] Installing /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/target/phoebus-target-0.0.1-SNAPSHOT.jar to /home/h1/.m2/repository/org/phoebus/phoebus-target/0.0.1-SNAPSHOT/phoebus-target-0.0.1-SNAPSHOT.jar [INFO] Installing /home/h1/PHOEBUS/phoebus/dependencies/phoebus-target/pom.xml to /home/h1/.m2/repository/org/phoebus/phoebus-target/0.0.1-SNAPSHOT/phoebus-target-0.0.1-SNAPSHOT.pom [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building core 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ core --- [INFO] [INFO] --- maven-failsafe-plugin:2.22.0:integration-test (default) @ core --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-failsafe-plugin:2.22.0:verify (default) @ core --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ core --- [INFO] Installing /home/h1/PHOEBUS/phoebus/core/pom.xml to /home/h1/.m2/repository/org/phoebus/core/0.0.1-SNAPSHOT/core-0.0.1-SNAPSHOT.pom [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building core-framework 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ core-framework --- [INFO] Deleting /home/h1/PHOEBUS/phoebus/core/framework/target [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ core-framework --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.6.2:compile (default-compile) @ core-framework --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 62 source files to /home/h1/PHOEBUS/phoebus/core/framework/target/classes [INFO] /home/h1/PHOEBUS/phoebus/core/framework/src/main/java/org/phoebus/framework/preferences/FilePreferencesXmlSupport.java: Some input files use or override a deprecated API. [INFO] /home/h1/PHOEBUS/phoebus/core/framework/src/main/java/org/phoebus/framework/preferences/FilePreferencesXmlSupport.java: Recompile with -Xlint:deprecation for details. [INFO] /home/h1/PHOEBUS/phoebus/core/framework/src/main/java/org/phoebus/framework/selection/SelectionUtil.java: Some input files use unchecked or unsafe operations. [INFO] /home/h1/PHOEBUS/phoebus/core/framework/src/main/java/org/phoebus/framework/selection/SelectionUtil.java: Recompile with -Xlint:unchecked for details. [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /home/h1/PHOEBUS/phoebus/core/framework/src/main/java/org/phoebus/framework/spi/ToolbarEntry.java:[3,26] package javafx.scene.image does not exist [ERROR] /home/h1/PHOEBUS/phoebus/core/framework/src/main/java/org/phoebus/framework/spi/ToolbarEntry.java:[24,20] cannot find symbol symbol: class Image location: interface org.phoebus.framework.spi.ToolbarEntry [ERROR] /home/h1/PHOEBUS/phoebus/core/framework/src/main/java/org/phoebus/framework/spi/MenuEntry.java:[7,26] package javafx.scene.image does not exist [ERROR] /home/h1/PHOEBUS/phoebus/core/framework/src/main/java/org/phoebus/framework/spi/MenuEntry.java:[43,20] cannot find symbol symbol: class Image location: interface org.phoebus.framework.spi.MenuEntry [INFO] 4 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] phoebus (parent) ................................... SUCCESS [ 0.806 s] [INFO] dependencies ....................................... SUCCESS [ 0.025 s] [INFO] install-jars ....................................... SUCCESS [ 0.941 s] [INFO] phoebus-target ..................................... SUCCESS [ 1.180 s] [INFO] core ............................................... SUCCESS [ 0.012 s] [INFO] core-framework ..................................... FAILURE [ 2.070 s] [INFO] core-security ...................................... SKIPPED [INFO] core-util .......................................... SKIPPED [INFO] core-vtype ......................................... SKIPPED [INFO] core-pv ............................................ SKIPPED [INFO] core-ui ............................................ SKIPPED [INFO] core-logbook ....................................... SKIPPED [INFO] core-types ......................................... SKIPPED [INFO] core-formula ....................................... SKIPPED [INFO] core-email ......................................... SKIPPED [INFO] app ................................................ SKIPPED [INFO] app-greetings ...................................... SKIPPED [INFO] app-logConfiguration ............................... SKIPPED [INFO] app-probe .......................................... SKIPPED [INFO] app-email .......................................... SKIPPED [INFO] app-logbook ........................................ SKIPPED [INFO] app-logbook-utility ................................ SKIPPED [INFO] app-logbook-ui ..................................... SKIPPED [INFO] app-pvtable ........................................ SKIPPED [INFO] app-pvtree ......................................... SKIPPED [INFO] app-update ......................................... SKIPPED [INFO] app-filebrowser .................................... SKIPPED [INFO] app-logbook-inmemory ............................... SKIPPED [INFO] app-logbook-olog ................................... SKIPPED [INFO] app-rtplot ......................................... SKIPPED [INFO] app-databrowser .................................... SKIPPED [INFO] app-display ........................................ SKIPPED [INFO] app-display-model .................................. SKIPPED [INFO] app-display-representation ......................... SKIPPED [INFO] app-display-representation-javafx .................. SKIPPED [INFO] app-display-runtime ................................ SKIPPED [INFO] app-display-editor ................................. SKIPPED [INFO] app-alarm .......................................... SKIPPED [INFO] app-alarm-model .................................... SKIPPED [INFO] app-alarm-ui ....................................... SKIPPED [INFO] app-alarm-logging-ui ............................... SKIPPED [INFO] app-scan ........................................... SKIPPED [INFO] app-scan-model ..................................... SKIPPED [INFO] app-scan-client .................................... SKIPPED [INFO] app-scan-ui ........................................ SKIPPED [INFO] app-channel ........................................ SKIPPED [INFO] app-channel-channelfinder .......................... SKIPPED [INFO] app-channel-utility ................................ SKIPPED [INFO] app-channel-views .................................. SKIPPED [INFO] product ............................................ SKIPPED [INFO] services ........................................... SKIPPED [INFO] service-alarm-server ............................... SKIPPED [INFO] service-archive-engine ............................. SKIPPED [INFO] service-scan-server ................................ SKIPPED [INFO] service-alarm-logger ............................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5.669 s [INFO] Finished at: 2018-09-23T14:44:46+02:00 [INFO] Final Memory: 27M/97M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.2:compile (default-compile) on project core-framework: Compilation failure: Compilation failure: [ERROR] /home/h1/PHOEBUS/phoebus/core/framework/src/main/java/org/phoebus/framework/spi/ToolbarEntry.java:[3,26] package javafx.scene.image does not exist [ERROR] /home/h1/PHOEBUS/phoebus/core/framework/src/main/java/org/phoebus/framework/spi/ToolbarEntry.java:[24,20] cannot find symbol [ERROR] symbol: class Image [ERROR] location: interface org.phoebus.framework.spi.ToolbarEntry [ERROR] /home/h1/PHOEBUS/phoebus/core/framework/src/main/java/org/phoebus/framework/spi/MenuEntry.java:[7,26] package javafx.scene.image does not exist [ERROR] /home/h1/PHOEBUS/phoebus/core/framework/src/main/java/org/phoebus/framework/spi/MenuEntry.java:[43,20] cannot find symbol [ERROR] symbol: class Image [ERROR] location: interface org.phoebus.framework.spi.MenuEntry [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :core-framework [h1@earth phoebus (master)]$

kasemir commented 5 years ago

You need a Java with JavaFX.

The easiest way is the Oracle 9 or 10 JDK.

For openJDK, see https://github.com/shroffk/phoebus/issues/143 for an example of using the openJDK 11 early acccess preview. I'm not sure about OpenJDK 9/10 and JavaFX. Try something like apt-get install -y openjfx to add JavaFX.

kasemir commented 5 years ago

The longer story is that we use JavaFX for the UI. Oracle Java 8, 9, 10 SDKs include JavaFX. For OpenJDK, JavaFX is a separate install.

kasemir commented 5 years ago

https://stackoverflow.com/questions/18547362/javafx-and-openjdk

hjunkes commented 5 years ago

Danke Kay fuer die schnelle Antwort.

I have now installed oracle java 10 for the sake of simplicity. With the installation of openjfx I did not get any further. Maybe I got myself confused when trying to get channelfinder to work with glassfish and Co.

mvn clean install ... ... [INFO] service-archive-engine ............................. SUCCESS [ 1.029 s] [INFO] service-scan-server ................................ SUCCESS [ 2.130 s] [INFO] service-alarm-logger ............................... SUCCESS [ 15.203 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 05:10 min [INFO] Finished at: 2018-09-23T15:28:46+02:00 [INFO] Final Memory: 57M/194M [INFO] ------------------------------------------------------------------------

Looks great.

For licensing reasons we are currently trying to get rid of all applications that use Oracle Java (whether JDK or JRE) .

Heinz

kasemir commented 5 years ago

Good to hear that it works!

With Java 11, it looks like JavaFX will become a dependency just like the others, installed by either building the dependencies package with maven, or by downloading a phoebus-target.zip from a site like https://controlssoftware.sns.ornl.gov/css_phoebus/ . This means we no longer expect JavaFX to be included in the JDK. Plain OpenJDK would then work as well as Oracle JDK, and which JDK you choose would then simply be based on what you think runs better or fits your licensing persuasion.