Hello, I have a problem with java.awt.Color class. I'm running
Java on a Linux with Blackdown-1.4.2-03 JVM, without graphical environment (X).
When I try to load class java.awt.Color, it gives me a ClassNotFound exception. I tried setting the system propert java.awt.headless to true, but then it gives an error about libXp.so.6 not being found...
Exception in
thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/j2se/1.4/jre/lib/amd64/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1503)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1437)
at java.awt.Toolkit.<clinit>(Toolkit.java:1458)
at java.awt.Color.<clinit>(Color.java:250)
at neoris.Prueba.probar(Prueba.java:35)
at neoris.Prueba.main(Prueba.java:22)
I used headless parameter with some products such as JasperReports in past (over a distinct environment) and it worked well...
Somebody has a similar problem? Maybe java.awt.Color class doesn't supports headless parameter in Blackdown JVM?
Thanks
Lautaro