davmail requires libawt_xawt.so, but it's not provided by its dependecies.

Bug #1980395 reported by Francisco Durán
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
davmail (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

1. $ lsb_release -rd
Description: Ubuntu 22.04 LTS
Release: 22.04
2. $ apt-cache policy davmail
davmail:
  Installed: 6.0.1.3390-1
  Candidate: 6.0.1.3390-1
  Version table:
 *** 6.0.1.3390-1 500
        500 http://cl.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        500 http://cl.archive.ubuntu.com/ubuntu jammy/universe i386 Packages
        100 /var/lib/dpkg/status
3. I expect the davmail deb package to pull all the dependencies to be able to open a the davmail graphic interface after running # apt install davmail

4. After installing davmail and trying to run the davmail application in graphical mode, I get the following error:
$ davmail
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-11-openjdk-amd64/lib/libawt_xawt.so
 at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2633)
 at java.base/java.lang.Runtime.load0(Runtime.java:768)
 at java.base/java.lang.System.load(System.java:1837)
 at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
 at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2445)
 at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2501)
 at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2700)
 at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2651)
 at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:830)
 at java.base/java.lang.System.loadLibrary(System.java:1873)
 at java.desktop/java.awt.Toolkit$3.run(Toolkit.java:1399)
 at java.desktop/java.awt.Toolkit$3.run(Toolkit.java:1397)
 at java.base/java.security.AccessController.doPrivileged(Native Method)
 at java.desktop/java.awt.Toolkit.loadLibraries(Toolkit.java:1396)
 at java.desktop/java.awt.Toolkit.<clinit>(Toolkit.java:1429)
 at java.desktop/java.awt.SystemTray.isSupported(SystemTray.java:221)
 at davmail.ui.tray.DavGatewayTray.init(DavGatewayTray.java:236)
 at davmail.DavGateway.main(DavGateway.java:87)

This happens because default-jre-headless (dependes) after version 8 does not include that library and is now included in default-jre (suggests).

I believe this has been fixed upstream in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=%23987601 but I haven't been able to test it.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in davmail (Ubuntu):
status: New → Confirmed
Revision history for this message
Pres-Gas (presgas) wrote :

I can confirm installing openjdk-11-jre allows the application to run correctly.

Revision history for this message
niol (alexandre-rossi) wrote :

Since 6.0.1.3390-2 davmail correctly depends on default-jre .

Revision history for this message
niol (alexandre-rossi) wrote :

Fixed in 6.0.1.3390-2

Changed in davmail (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.