I am developing a JavaFX 8 application that runs cross-platform on Windows/OSX/Ubuntu via JWrapper. Right now I am using stage.getIcons().add(..) to set the stage icon to a 256x256 PNG bundled with the application. This works on Windows, however on Ubuntu, the dock icon remains the Oracle/Java default icon, as shown below. Is there some third party library, or some technique I can use to get my own icon and tooltip/title to display for the Ubuntu dock icon?
JavaFX Ubuntu stage dock icon does not update
1.4k Views Asked by Sam Johnson At
2
There are 2 best solutions below
0
Ashok Koyi
On
An issue was raised against openjdk https://bugs.openjdk.java.net/browse/JDK-8204936
Posting it here so that other will know the status
Related Questions in UBUNTU
- Error: local variable 'bramka' referenced before assignment
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Can't connect to local postgresql server from my docker container
- How to install libfuse2 on Ubuntu 22.04
- Error when trying to execute a binary compiled in a Kali Linux machine on an Ubuntu system
- Can anyoone help me with this problem while trying to install hadoop on ubuntu?
- Ubuntu wsl2 in windows, my /etc/fonts/fonts.conf keeps reloading
- psutil.sensors.temperatures() only delivers {}
- Issue with [proxy_fcgi:error] [pid 1539011] (70007)The timeout specified has expired
- Viber is not working on Ubuntu 22.04 Jammy
- why is ubuntu 18.4 still showing as a linux subsystem when i have uninstalled it?
- Why when I want to open a folder from Visual Studio Code does the screen go crazy?
- What is this error when trying to update Ubuntu?
- Angular on IONOS(?) throws an error with npm
- Tensorflow can't find TensoRT
Related Questions in JAVAFX-8
- How could I make a slider like this? Could this even be executed as a slider, or do I need another kind of node for this?
- Javafx textfield expanding to width of popup window
- JavaFX. Blocking user actions
- How to populate a JavaFX Textfield upon Redirection Using a Controller
- Why does Apache NetBeans Null Pointer Exception give me an error in my Java FXML project?
- How to remove blue border from TableColumn in JavaFX during reordering
- How to properly inherit an FXML annotated attribute for having it available in a subclass?
- How to fix JavaFX alignment problem when grouping elements?
- How to Change the Custom Color Lable text color using javafx css
- Creating PDFs in a custom javafx application
- why are the messages only being printed on client side of the GUI?
- Updating TableView from another FXML/Controller
- Get values from the ListView and display on a label in JavaFX
- Figma with JavaFX and custom components
- Javafx showing folder icons when I run it
Related Questions in JWRAPPER
- Unable to launch JWrapper under MacOS High Sierra
- Can I compile a Java App to a single binary that runs on Linux?
- JWrapper with JavaFX fails to launch on windows
- Which order? ProGuard + JWrapper + Launch4J
- JWrapper Compilation error
- On Mac OS X opening my document by double clicking at the document fails if my application is not already running
- How to use a license with JWrapper
- JWrapper Build Failed OutOfMemoryError
- JavaFX Ubuntu stage dock icon does not update
- JWrapper app crashes on all versions of OSX on load
- How to detect running app from JWrapper bundle and pass commandline arguments to it
- Not able to run exe after converting jar to exe
- Not able to convert applet to Jwrapper app
- JWrapper splash screen not disappearing on El Capitan
- Getting exception ClassNotFoundException and don't know why
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?

Ubuntu is a bit different: You would need to set the icon within a .desktop file. As far as I recall from our Ant-based build script using the JDKs javapackager tool, it is able to do that for you, but this bundles the whole JRE with it as well and you would need access to a (virtual) machine for each target platform and architecture (there are no Delta packages like in Eclipse, unfortunatly).
So basically when you export your application, you should build a predefined .desktop file, which would specify both the exec command and the path to the icon (whre I don't know, if this needs to be absolute or relative to the .desktop file location).