Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Running a Swing application with java sun-jdk-1.4.2.08
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
oneself
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jul 2005
Posts: 107
Location: New York, NY

PostPosted: Tue Jul 05, 2005 8:26 pm    Post subject: Running a Swing application with java sun-jdk-1.4.2.08 Reply with quote

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]
Back to top
View user's profile Send private message
dgaffuri
Advocate
Advocate


Joined: 05 Jun 2005
Posts: 2078
Location: Italy

PostPosted: Tue Jul 05, 2005 10:15 pm    Post subject: Reply with quote

It seems that the problem is with

Code:
/devel/j2sdk1.4.2_08/jre/lib/i386/libawt.so


Do you have /devel/j2sdk1.4.2_08/jre/lib in /etc/ld.so.conf.too?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum