Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
java question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
neuron
Advocate
Advocate


Joined: 28 May 2002
Posts: 2371

PostPosted: Mon Oct 13, 2003 2:42 pm    Post subject: java question Reply with quote

tried both blackdown and sun's jdk.

java -jar Swagger.jar
Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/sun-jdk-1.4.2.01/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:1560)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1477)
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)

any suggestions? revdep-rebuild wants to reinstall it every time.
Back to top
View user's profile Send private message
narensankar
Tux's lil' helper
Tux's lil' helper


Joined: 04 Nov 2002
Posts: 109

PostPosted: Mon Oct 13, 2003 6:03 pm    Post subject: Reply with quote

try ldd /opt/sun-jdk-1.4.2.01/jre/lib/i386/libawt.so

Seems like you xfree install is borked. Do you have /usr/X11R6/lib/libXp.so.6. That library on my system is provided by x11-base/xfree. You may need to remerge xfree.

Hope that helps
Naren
Back to top
View user's profile Send private message
neuron
Advocate
Advocate


Joined: 28 May 2002
Posts: 2371

PostPosted: Mon Oct 13, 2003 7:10 pm    Post subject: Reply with quote

don't have xfree on it, it's a server.
Back to top
View user's profile Send private message
narensankar
Tux's lil' helper
Tux's lil' helper


Joined: 04 Nov 2002
Posts: 109

PostPosted: Mon Oct 13, 2003 8:31 pm    Post subject: Reply with quote

well the library that java is trying to load - libawt is for the display side of the world. So you are trying to run a java application that needs a display - either local or remote. You can try to run the app with the -server command line option. i.e. java -server -jar Swagger.jar, though from the java exception it looks like the application will require a display support.

So your only real option is to merge xfree. It will give you the libraries for the java app to run. (Or based on the app - there might be a command line option to turn on display support)

Naren
Back to top
View user's profile Send private message
narensankar
Tux's lil' helper
Tux's lil' helper


Joined: 04 Nov 2002
Posts: 109

PostPosted: Mon Oct 13, 2003 8:33 pm    Post subject: Reply with quote

ok
Just found swagger on the net - It it from Weatherlight? If so, it is an im client and will definitly require Xfree support to run. There is no other way around it. On linux - Java needs X for a display. It cannot run as a terminal client - As far as I know.

Naren
Back to top
View user's profile Send private message
neuron
Advocate
Advocate


Joined: 28 May 2002
Posts: 2371

PostPosted: Mon Oct 13, 2003 8:53 pm    Post subject: Reply with quote

of course, I was going to test it on the server, but java is of course client side not server side, so it wouldn't work from the server ;)

thanks for the help guys, I'll put it online and test it from a box with xfree.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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