JavaFX unavailable during build

java

#1

Hello,

I recently introduced JavaFX to my project and it is building fine locally. However, the CircleCI Maven build continuously fails since it cannot find JavaFX related classes. For example:
package javafx.fxml does not exist

So I moved from OpenJDK to Oracle JDK: circleci/java:8-jdk

But the build still fails with the same issue. What do I have to configure to make it work?

Best regards
Stephan

Edit:
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/AbstractController.java:[3,28] package javafx.scene.control does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/AbstractController.java:[4,28] package javafx.scene.control does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/AbstractController.java:[5,28] package javafx.scene.control does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/AbstractController.java:[6,27] package javafx.scene.layout does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/AbstractController.java:[7,27] package javafx.scene.layout does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/SARFRunner.java:[4,26] package javafx.application does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/SARFRunner.java:[5,19] package javafx.fxml does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/SARFRunner.java:[6,20] package javafx.scene does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/SARFRunner.java:[7,20] package javafx.scene does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/SARFRunner.java:[8,20] package javafx.stage does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/SARFRunner.java:[25,33] cannot find symbol
symbol: class Application
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/SARFRunner.java:[31,13] cannot find symbol
symbol: class Parent
location: class com.<company.project>.SARFRunner
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/SARFRunner.java:[86,23] cannot find symbol
symbol: class Stage
location: class com.<company.project>.SARFRunner
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[4,19] package javafx.fxml does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[5,1] package javafx.scene.control does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[15,13] cannot find symbol
symbol: class ChoiceBox
location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[18,13] cannot find symbol
symbol: class TextField
location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[21,13] cannot find symbol
symbol: class CheckBox
location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[24,13] cannot find symbol
symbol: class TextField
location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[27,13] cannot find symbol
symbol: class TextField
location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[30,13] cannot find symbol
symbol: class CheckBox
location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[33,13] cannot find symbol
symbol: class CheckBox
location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[36,13] cannot find symbol
symbol: class ChoiceBox
location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[39,13] cannot find symbol
symbol: class ChoiceBox
location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[42,13] cannot find symbol
symbol: class Button
location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[45,13] cannot find symbol
symbol: class ProgressBar
location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[48,13] cannot find symbol
symbol: class TextField
location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[51,13] cannot find symbol
symbol: class TextField
location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/DatabaseConnectionController.java:[4,19] package javafx.fxml does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/DatabaseConnectionController.java:[5,28] package javafx.scene.control does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/DatabaseConnectionController.java:[6,28] package javafx.scene.control does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/DatabaseConnectionController.java:[7,20] package javafx.stage does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/DatabaseConnectionController.java:[21,13] cannot find symbol
symbol: class Button
location: class com.<company.project>.controller.DatabaseConnectionController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/DatabaseConnectionController.java:[24,13] cannot find symbol
symbol: class Button
location: class com.<company.project>.controller.DatabaseConnectionController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/DatabaseConnectionController.java:[27,13] cannot find symbol
symbol: class Button
location: class com.<company.project>.controller.DatabaseConnectionController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/DatabaseConnectionController.java:[30,13] cannot find symbol
symbol: class TextField
location: class com.<company.project>.controller.DatabaseConnectionController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[14,6] cannot find symbol
symbol: class FXML
location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[17,6] cannot find symbol
symbol: class FXML
location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[20,6] cannot find symbol
symbol: class FXML
location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[23,6] cannot find symbol
symbol: class FXML
location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[26,6] cannot find symbol
symbol: class FXML
location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[29,6] cannot find symbol
symbol: class FXML
location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[32,6] cannot find symbol
symbol: class FXML
location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[35,6] cannot find symbol
symbol: class FXML
location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[38,6] cannot find symbol
symbol: class FXML
location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[41,6] cannot find symbol
symbol: class FXML
location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[44,6] cannot find symbol
symbol: class FXML
location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[47,6] cannot find symbol
symbol: class FXML
location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[50,6] cannot find symbol
symbol: class FXML
location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[53,6] cannot find symbol
symbol: class FXML
location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/DatabaseConnectionController.java:[20,6] cannot find symbol
symbol: class FXML
location: class com.<company.project>.controller.DatabaseConnectionController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/DatabaseConnectionController.java:[23,6] cannot find symbol
symbol: class FXML
location: class com.<company.project>.controller.DatabaseConnectionController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/DatabaseConnectionController.java:[26,6] cannot find symbol
symbol: class FXML
location: class com.<company.project>.controller.DatabaseConnectionController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/DatabaseConnectionController.java:[29,6] cannot find symbol
symbol: class FXML
location: class com.<company.project>.controller.DatabaseConnectionController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/DatabaseConnectionController.java:[32,6] cannot find symbol
symbol: class FXML
location: class com.<company.project>.controller.DatabaseConnectionController
[INFO] 55 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.206 s
[INFO] Finished at: 2017-09-22T15:30:38Z
[INFO] Final Memory: 56M/881M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project sar-framework: Compilation failure: Compilation failure:
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/AbstractController.java:[3,28] package javafx.scene.control does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/AbstractController.java:[4,28] package javafx.scene.control does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/AbstractController.java:[5,28] package javafx.scene.control does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/AbstractController.java:[6,27] package javafx.scene.layout does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/AbstractController.java:[7,27] package javafx.scene.layout does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/SARFRunner.java:[4,26] package javafx.application does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/SARFRunner.java:[5,19] package javafx.fxml does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/SARFRunner.java:[6,20] package javafx.scene does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/SARFRunner.java:[7,20] package javafx.scene does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/SARFRunner.java:[8,20] package javafx.stage does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/SARFRunner.java:[25,33] cannot find symbol
[ERROR] symbol: class Application
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/SARFRunner.java:[31,13] cannot find symbol
[ERROR] symbol: class Parent
[ERROR] location: class com.<company.project>.SARFRunner
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/SARFRunner.java:[86,23] cannot find symbol
[ERROR] symbol: class Stage
[ERROR] location: class com.<company.project>.SARFRunner
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[4,19] package javafx.fxml does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[5,1] package javafx.scene.control does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[15,13] cannot find symbol
[ERROR] symbol: class ChoiceBox
[ERROR] location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[18,13] cannot find symbol
[ERROR] symbol: class TextField
[ERROR] location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[21,13] cannot find symbol
[ERROR] symbol: class CheckBox
[ERROR] location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[24,13] cannot find symbol
[ERROR] symbol: class TextField
[ERROR] location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[27,13] cannot find symbol
[ERROR] symbol: class TextField
[ERROR] location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[30,13] cannot find symbol
[ERROR] symbol: class CheckBox
[ERROR] location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[33,13] cannot find symbol
[ERROR] symbol: class CheckBox
[ERROR] location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[36,13] cannot find symbol
[ERROR] symbol: class ChoiceBox
[ERROR] location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[39,13] cannot find symbol
[ERROR] symbol: class ChoiceBox
[ERROR] location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[42,13] cannot find symbol
[ERROR] symbol: class Button
[ERROR] location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[45,13] cannot find symbol
[ERROR] symbol: class ProgressBar
[ERROR] location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[48,13] cannot find symbol
[ERROR] symbol: class TextField
[ERROR] location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[51,13] cannot find symbol
[ERROR] symbol: class TextField
[ERROR] location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/DatabaseConnectionController.java:[4,19] package javafx.fxml does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/DatabaseConnectionController.java:[5,28] package javafx.scene.control does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/DatabaseConnectionController.java:[6,28] package javafx.scene.control does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/DatabaseConnectionController.java:[7,20] package javafx.stage does not exist
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/DatabaseConnectionController.java:[21,13] cannot find symbol
[ERROR] symbol: class Button
[ERROR] location: class com.<company.project>.controller.DatabaseConnectionController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/DatabaseConnectionController.java:[24,13] cannot find symbol
[ERROR] symbol: class Button
[ERROR] location: class com.<company.project>.controller.DatabaseConnectionController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/DatabaseConnectionController.java:[27,13] cannot find symbol
[ERROR] symbol: class Button
[ERROR] location: class com.<company.project>.controller.DatabaseConnectionController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/DatabaseConnectionController.java:[30,13] cannot find symbol
[ERROR] symbol: class TextField
[ERROR] location: class com.<company.project>.controller.DatabaseConnectionController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[14,6] cannot find symbol
[ERROR] symbol: class FXML
[ERROR] location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[17,6] cannot find symbol
[ERROR] symbol: class FXML
[ERROR] location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[20,6] cannot find symbol
[ERROR] symbol: class FXML
[ERROR] location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[23,6] cannot find symbol
[ERROR] symbol: class FXML
[ERROR] location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[26,6] cannot find symbol
[ERROR] symbol: class FXML
[ERROR] location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[29,6] cannot find symbol
[ERROR] symbol: class FXML
[ERROR] location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[32,6] cannot find symbol
[ERROR] symbol: class FXML
[ERROR] location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[35,6] cannot find symbol
[ERROR] symbol: class FXML
[ERROR] location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[38,6] cannot find symbol
[ERROR] symbol: class FXML
[ERROR] location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[41,6] cannot find symbol
[ERROR] symbol: class FXML
[ERROR] location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[44,6] cannot find symbol
[ERROR] symbol: class FXML
[ERROR] location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[47,6] cannot find symbol
[ERROR] symbol: class FXML
[ERROR] location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[50,6] cannot find symbol
[ERROR] symbol: class FXML
[ERROR] location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/ConfigurationDialogController.java:[53,6] cannot find symbol
[ERROR] symbol: class FXML
[ERROR] location: class com.<company.project>.controller.ConfigurationDialogController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/DatabaseConnectionController.java:[20,6] cannot find symbol
[ERROR] symbol: class FXML
[ERROR] location: class com.<company.project>.controller.DatabaseConnectionController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/DatabaseConnectionController.java:[23,6] cannot find symbol
[ERROR] symbol: class FXML
[ERROR] location: class com.<company.project>.controller.DatabaseConnectionController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/DatabaseConnectionController.java:[26,6] cannot find symbol
[ERROR] symbol: class FXML
[ERROR] location: class com.<company.project>.controller.DatabaseConnectionController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/DatabaseConnectionController.java:[29,6] cannot find symbol
[ERROR] symbol: class FXML
[ERROR] location: class com.<company.project>.controller.DatabaseConnectionController
[ERROR] /home/circleci/sar-framework/src/main/java/com/<company/project>/controller/DatabaseConnectionController.java:[32,6] cannot find symbol
[ERROR] symbol: class FXML
[ERROR] location: class com.<company.project>.controller.DatabaseConnectionController
[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
Exited with code 1


#2

Can you add the error message to this post?


#3

I just added the error.


#4

Same here, how to solve?


#5

This looks pretty relevant.


#6

I was able to build only with:

machine:
  java:
    version: oraclejdk8

But I didn’t find docker image circleci/oraclejdk:8-jdk, why CircleCI don’t have it?
When it will be available?

Here is my current config:

# Java Maven CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-java/ for more details
#
version: 2

general:
  branches:
    only:
     - Hronom-deploy # list of branches to build
#     - /feature-.*/ # or regexes

machine:
  java:
    version: oraclejdk8

jobs:
  build:
    machine: true

      # Specify service dependencies here if necessary
      # CircleCI maintains a library of pre-built images
      # documented at https://circleci.com/docs/2.0/circleci-images/
      # - image: circleci/postgres:9.4

    working_directory: ~/repo

    environment:
      # Customize the JVM maximum heap limit
      MAVEN_OPTS: -Xmx3200m

    steps:
      - checkout

      # Download and cache dependencies
      - restore_cache:
          keys:
          - v1-dependencies-{{ checksum "pom.xml" }}
          # fallback to using the latest cache if no exact match is found
          - v1-dependencies-

      # https://issues.apache.org/jira/browse/MDEP-204
      #- run: mvn dependency:go-offline
      - run: mvn dependency:tree

      - save_cache:
          paths:
            - ~/.m2
          key: v1-dependencies-{{ checksum "pom.xml" }}

      # run tests!
      #- run: mvn integration-test
      - run: mvn install -DskipTests

#7

We have openjdk not oraclejdk, note the 404 on this page: https://hub.docker.com/r/circleci/oraclejdk/

This is what you want to use:

https://hub.docker.com/r/circleci/openjdk/tags/

8-jdk is present in that list.


#8

But it contains open jdk not oracle jdk. I need jdk from oracle. Here is the issue on GitHub https://github.com/circleci/circleci-images/issues/134#issuecomment-353449208

Other guys also needs JDK from Oracle can you please add default support for it?


#9

Oraclejdk has a licensing issue and oracle requires you accept license as part of download, etc etc - and posting a docker image in their eyes constitutes a distribution that their license doesn’t permit

But feel free to build one yourself, I guess.


#10