JDK-8154994 : The pre-loaded GTK library version cannot be detected by AWT Toolkit when being embedded in SWT
  • Type: Bug
  • Component: client-libs
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: generic
  • Submitted: 2016-04-25
  • Updated: 2016-05-26
  • Resolved: 2016-05-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Resolved
Related Reports
Duplicate :  
Relates :  
Description
If GTK libraries have different versions an attempt to load them in the same process will cause fatal error.

After the JDK-8145547 JDK may work with 2 versions of GTK: 2 and 3 and has a built-in mechanism to detect the library version it should use to avoid loading of incompatible library version. This mechanism tries to detect if the certain version of GTK is pre-loaded in the process. But it fails to detect this in case of SWT embedding.

Test AWT_SWT/Manual/SwingComp/SwingAppTest.java crashes with GTK LnF, unless the GTK version is set manually to 3: -Djdk.gtk.version=3.