-
Bug
-
Resolution: Fixed
-
P2
-
6
-
b49
-
x86
-
linux
-
Verified
Run the following simple test on Linux, 6.0b40+ workspace. The following exception will be thrown:
Exception in thread "main" java.lang.UnsatisfiedLinkError: InternAtom
at sun.awt.X11.XlibWrapper.InternAtom(Native Method)
at sun.awt.X11.XAtom.<init>(XAtom.java:250)
at sun.awt.X11.XAtom.<init>(XAtom.java:216)
at sun.awt.X11.XAtom.get(XAtom.java:161)
at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:1783)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:163)
at java.awt.Toolkit$2.run(Toolkit.java:816)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:808)
at HeadlessAddAWTEventListenerTest.main(HeadlessAddAWTEventListenerTest.java:17)
Test:
import java.awt.*;
import java.awt.event.*;
public class HeadlessAddAWTEventListenerTest
{
public static void main(String[] args)
{
System.setProperty("java.awt.headless", "true");
Toolkit t = Toolkit.getDefaultToolkit();
}
}
It works with b39.
###@###.### 2005-06-08 14:31:31 GMT
Exception in thread "main" java.lang.UnsatisfiedLinkError: InternAtom
at sun.awt.X11.XlibWrapper.InternAtom(Native Method)
at sun.awt.X11.XAtom.<init>(XAtom.java:250)
at sun.awt.X11.XAtom.<init>(XAtom.java:216)
at sun.awt.X11.XAtom.get(XAtom.java:161)
at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:1783)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:163)
at java.awt.Toolkit$2.run(Toolkit.java:816)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:808)
at HeadlessAddAWTEventListenerTest.main(HeadlessAddAWTEventListenerTest.java:17)
Test:
import java.awt.*;
import java.awt.event.*;
public class HeadlessAddAWTEventListenerTest
{
public static void main(String[] args)
{
System.setProperty("java.awt.headless", "true");
Toolkit t = Toolkit.getDefaultToolkit();
}
}
It works with b39.
###@###.### 2005-06-08 14:31:31 GMT
- relates to
-
JDK-6312315 500 JCK tests fail in Headless mode with java.lang.NoClassDefFoundError: Could not initialize class
- Closed