oneself Tux's lil' helper
Joined: 02 Jul 2005 Posts: 107 Location: New York, NY
|
Posted: Tue Jul 05, 2005 8:26 pm Post subject: Running a Swing application with java sun-jdk-1.4.2.08 |
|
|
This started as an IntelliJ issue, but then I tried writed a _very_ basic
Swing application to see if I can run it, and I cannot. The class I wrote
looks like this:
Code: | import javax.swing.*;
public class SwingTest extends JFrame {
public static void main(String[] args)
{
SwingTest test = new SwingTest();
test.getContentPane().add(new JLabel("Hello World"));
test.show();
}
public SwingTest()
{
super("Swing Test");
}
}
|
Very basic stuff, and it runs fine on any of my other machines.
When I run it on Gentoo however, I get this Exception:
Code: | Exception in thread "main" java.lang.UnsatisfiedLinkError: /devel/j2sdk1.4.2_08/jre/lib/i386/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 sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)
at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)
at java.awt.Component.<clinit>(Component.java:506)
|
I have libXp.so.6 in my /usr/lib64 dir, and /usr/lib64 is included in /etc/ld.so.conf.
I'm not sure why hava can't find it.[/code] |
|