Can’t find JavaFX, in CircleCI, after upgrading to Java 10 - javafx

I just upgraded my project from Java 8 to Java 10. It successfully builds in IntelliJ and locally running mvn --batch-mode package, but when I try to build in CircleCI I get:
[ERROR] /home/circleci/repo/src/main/java/tech/dashman/dashman/controllers/common/ConnectController.java:[5,26] package javafx.application does not exist
[ERROR] /home/circleci/repo/src/main/java/tech/dashman/dashman/controllers/common/ConnectController.java:[6,19] package javafx.fxml does not exist
[ERROR] /home/circleci/repo/src/main/java/tech/dashman/dashman/controllers/common/ConnectController.java:[7,28] package javafx.scene.control does not exist
[ERROR] /home/circleci/repo/src/main/java/tech/dashman/dashman/controllers/common/ConnectController.java:[8,28] package javafx.scene.control does not exist
[ERROR] /home/circleci/repo/src/main/java/tech/dashman/dashman/controllers/common/ConnectController.java:[9,28] package javafx.scene.control does not exist
[ERROR] /home/circleci/repo/src/main/java/tech/dashman/dashman/controllers/common/Controller.java:[5,19] package javafx.fxml does not exist
[ERROR] /home/circleci/repo/src/main/java/tech/dashman/dashman/controllers/common/Controller.java:[6,20] package javafx.scene does not exist
[ERROR] /home/circleci/repo/src/main/java/tech/dashman/dashman/controllers/common/Controller.java:[8,26] package javafx.scene.input does not exist
[ERROR] /home/circleci/repo/src/main/java/tech/dashman/dashman/controllers/common/Controller.java:[9,26] package javafx.scene.input does not exist
[ERROR] /home/circleci/repo/src/main/java/tech/dashman/dashman/controllers/common/Controller.java:[10,27] package javafx.scene.layout does not exist
Is this because JavaFX is not installed?
I tried adding
sudo apt-get install openjfx
to my config file on top of the circleci/openjdk:10-jdk-browsers, which I’m not sure whether it’s the one I should be using or not and that seems to install openjfx for Java 8.
I haven’t added a module-info.java, in case that’s relevant.

Related

Erlang erlyberly build is failing

Setup: Java 17.0.1, Ubuntu 22.04.1 LTS, openjfx installed
$ sudo apt-get install openjfx
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
.....
$ apt list --installed | grep fx
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
grub-gfxpayload-lists/jammy,now 0.7 amd64 [installed]
libmfx1/jammy,now 22.3.0-1 amd64 [installed,automatic]
libopenjfx-java/jammy,jammy,now 11.0.11+0-1 all [installed,automatic]
libopenjfx-jni/jammy,now 11.0.11+0-1 amd64 [installed,automatic]
openjfx-source/jammy,jammy,now 11.0.11+0-1 all [installed,automatic]
openjfx/jammy,now 11.0.11+0-1 amd64 [installed]
Reference: https://github.com/andytill/erlyberly/wiki/Compiling
I have git cloned as specified in the reference. When I try to build using "./mvnw clean compile install assembly:single", I am getting the following error. Please help me in resolving the issue.
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/bhuvan/git/erlyberly/src/main/java/erlyberly/TermTreeView.java:[38,20] package javafx.event does not exist
[ERROR] /home/bhuvan/git/erlyberly/src/main/java/erlyberly/TermTreeView.java:[39,28] package javafx.scene.control does not exist
[ERROR] /home/bhuvan/git/erlyberly/src/main/java/erlyberly/TermTreeView.java:[40,28] package javafx.scene.control does not exist
[ERROR] /home/bhuvan/git/erlyberly/src/main/java/erlyberly/TermTreeView.java:[41,28] package javafx.scene.control does not exist
[ERROR] /home/bhuvan/git/erlyberly/src/main/java/erlyberly/TermTreeView.java:[42,28] package javafx.scene.control does not exist
[ERROR] /home/bhuvan/git/erlyberly/src/main/java/erlyberly/TermTreeView.java:[43,28] package javafx.scene.control does not exist
[ERROR] /home/bhuvan/git/erlyberly/src/main/java/erlyberly/TermTreeView.java:[44,26] package javafx.scene.input does not exist
[ERROR] /home/bhuvan/git/erlyberly/src/main/java/erlyberly/TermTreeView.java:[45,26] package javafx.scene.input does not exist
[ERROR] /home/bhuvan/git/erlyberly/src/main/java/erlyberly/TermTreeView.java:[46,26] package javafx.scene.input does not exist
[ERROR] /home/bhuvan/git/erlyberly/src/main/java/erlyberly/TermTreeView.java:[49,35] cannot find symbol

Unable to install yfinance

The package will not install.
In the command prompt I entered, 'pip install yfinance'
C:\Users\gam19\AppData\Local\Temp\xmlXPathInitw4g8q0z6.c(1): fatal error C1083: Cannot open include file: 'libxml/xpath.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.34.31933\\bin\\HostX86\\x86\\cl.exe' failed with exit code 2
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*********************************************************************************
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> lxml
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
You can download the wheel from https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml and install it (E.g. pip install lxml‑4.9.0‑cp311‑cp311‑win_amd64.whl). Trying pip install yfinance might work after that.

During Instl apache-airflow got the error: subprocess-exited-with-error, Building wheel for setproctitle (pyproject.toml) did not run successfully

pip install apache-airflow
pip3.9 install apache-airflow
The Err by Collecting urllib3<1.27,>=1.21.1
Using cached urllib3-1.26.8-py2.py3-none-any.whl (138 kB)
Using legacy 'setup.py install' for flask-login, since package 'wheel' is not installed.
Using legacy 'setup.py install' for python-nvd3, since package 'wheel' is not installed.
Using legacy 'setup.py install' for python-slugify, since package 'wheel' is not installed.
Using legacy 'setup.py install' for termcolor, since package 'wheel' is not installed.
Using legacy 'setup.py install' for unicodecsv, since package 'wheel' is not installed.
Using legacy 'setup.py install' for blinker, since package 'wheel' is not installed.
Using legacy 'setup.py install' for Flask-JWT-Extended, since package 'wheel' is not installed.
Building wheels for collected packages: setproctitle
Building wheel for setproctitle (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for setproctitle (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
running bdist_wheel
running build
running build_ext
building 'setproctitle' extension
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for setproctitle
Failed to build setproctitle
ERROR: Could not build wheels for setproctitle, which is required to install pyproject.toml-based projects
actually already tried to downgrade the pip version from pip 22.0.3 to 20.2.4
pip install --upgrade pip==20.2.4
like solution in the thread "Could not build wheels for setproctitle..."
still the same error

Installing RApache in Ubuntu 16.04 Apache/2.4.18 (Ubuntu): I get some errors

I am trying to install RApache in Ubuntu 16.04 Apache/2.4.18 (Ubuntu) but I get some errors:
1- First when i install some packages:
sudo apt-get install apache2-prefork-dev apache2-mpm-prefork libapreq2-dev r-base-dev
I get an error message:
Package apache2-mpm-prefork is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Unable to locate package apache2-prefork-dev
E: Package 'apache2-mpm-prefork' has no installation candidate
When I try
debuild -us -uc
I get the message:
This package has a Debian revision number but there does not seem to be
an appropriate original tar file or .orig directory in the parent directory;
(expected one of libapache2-mod-r-base_1.2.8.orig.tar.gz, libapache2-mod-r-base_1.2.8.orig.tar.bz2,
libapache2-mod-r-base_1.2.8.orig.tar.lzma, libapache2-mod-r-base_1.2.8.orig.tar.xz or rapache.orig)
continue anyway? (y/n)
I decide for yes but it does not work, I get:
dpkg-buildpackage -rfakeroot -D -us -uc
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: source package libapache2-mod-r-base
dpkg-buildpackage: source version 1.2.8-xenial0
dpkg-buildpackage: source distribution xenial0
dpkg-buildpackage: source changed by Jeroen Ooms
dpkg-source --before-build rapache
dpkg-buildpackage: host architecture amd64
dpkg-checkbuilddeps: error: Unmet build dependencies: apache2-dev
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
debuild: fatal error at line 1376:
dpkg-buildpackage -rfakeroot -D -us -uc failed
Is there anybody who can help me please?
I really appreciate any help you can provide.
Roberto
You are missing a whole bunch of files. See the official documentation for preparing the proper directory structure, suitable for packaging. See this package source as an example.

Error while building Spark 1.2.1 on Windows 7 using sbt

I am trying to build Spark 1.2.1 on Windows with the help of sbt, and I'm running into the following issue:
Edit: The command I ran was sbt/sbt assembly
[info] Set current project to spark-parent (in build file:/C:/Programming/spark-1.2.1/)
[error] Expected symbol
[error] Not a valid command: /
[error] /sbt
[error] ^
Any help would be greatly appreciated.
I used the latest sbt Windows installer to install sbt and have Git installed on my machine.

Resources