Open RichardFans opened 8 months ago
my build.gradle script:
dependencies {
...
implementation("com.dorkbox:SystemTray:4.4")
}
my module-info.java:
module com.richard.ReaderFEP {
requires javafx.controls;
requires javafx.fxml;
requires okhttp3;
requires retrofit2;
requires retrofit2.converter.gson;
requires com.github.benmanes.caffeine;
requires com.google.gson;
requires org.controlsfx.controls;
requires com.dlsc.formsfx;
requires net.synedra.validatorfx;
requires org.kordamp.ikonli.javafx;
requires org.kordamp.ikonli.core;
requires org.kordamp.ikonli.fontawesome5;
requires org.kordamp.bootstrapfx.core;
requires org.yaml.snakeyaml;
requires java.desktop;
requires jdk.crypto.ec;
requires org.slf4j;
requires ch.qos.logback.classic;
// requires ch.qos.logback.core;
requires java.naming;
requires javafx.swing;
requires ch.qos.logback.core;
requires dorkbox.jna;
requires dorkbox.systemtray;
opens com.richard.ReaderFEP to javafx.fxml;
exports com.richard.ReaderFEP;
exports com.richard.ReaderFEP.config;
exports com.richard.ReaderFEP.server;
exports com.richard.ReaderFEP.api.type;
opens com.richard.ReaderFEP.server to javafx.fxml;
opens com.richard.ReaderFEP.api.type;
exports com.richard.ReaderFEP.trayIcon;
opens com.richard.ReaderFEP.trayIcon to javafx.fxml;
}
other info maybe helpful: Listing Installed Packages with "appindicator" Keyword:
$ sudo apt list --installed | grep appindicator
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
gnome-shell-extension-appindicator/jammy,jammy,now 42-2~fakesync1 all [installed, automatic]
libayatana-appindicator3-1/jammy,now 0.5.90-7ubuntu2 amd64 [installed]
Installing libappindicator3-dev:
$ sudo apt-get install libappindicator3-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libayatana-appindicator3-1 : Conflicts: libappindicator3-1
Installing libappindicator1 is not working either. my jdk version is 17(liberica-17) my javafx version is :
javafx {
version = '17.0.2'
modules = ['javafx.controls', 'javafx.fxml', 'javafx.swing']
}
Thank you for the detailed writeup!
It might be related to JavaFX (which is finicky). I’ll look into this.
my code is:
run by:
output message:
if I remove
setSysTray(stage);
,it can run successfully.