18 messages in net.java.dev.jna.usersRe: [jna-users] Example not working o...
FromSent OnAttachments
Jain, Anant (GE Heathcare)Sep 4, 2007 1:19 am 
Timothy WallSep 4, 2007 4:33 am 
Timothy WallSep 4, 2007 5:06 am 
Wayne MeissnerSep 4, 2007 6:26 am 
Jain, Anant (GE Heathcare)Sep 4, 2007 10:50 pm 
Jain, Anant (GE Heathcare)Sep 4, 2007 10:51 pm 
Wayne MeissnerSep 4, 2007 11:38 pm 
Jain, Anant (GE Heathcare)Sep 6, 2007 2:49 am 
Timothy WallSep 6, 2007 11:16 am 
Jain, Anant (GE Heathcare)Sep 6, 2007 9:53 pm.txt
Timothy WallSep 7, 2007 3:50 am 
Jain, Anant (GE Heathcare)Sep 7, 2007 4:51 am 
Timothy WallSep 7, 2007 5:44 am 
Jain, Anant (GE Heathcare)Sep 10, 2007 1:29 am 
Wayne MeissnerSep 10, 2007 1:57 am 
Jain, Anant (GE Heathcare)Sep 10, 2007 5:03 am 
Jain, Anant (GE Heathcare)Sep 11, 2007 4:23 am 
Timothy WallSep 11, 2007 4:44 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] Example not working on LinuxActions...
From:Timothy Wall (twal@dev.java.net)
Date:Sep 11, 2007 4:44:16 am
List:net.java.dev.jna.users

You need to tell JNA where the X11 libs are. You do this by setting the jna.library.path system property, e.g.

java ... -Djna.library.path=<path-to-X11-library> ...

If you look at the corresponding jnlp file, you'll see that the property is set prior to launch of the demo.

On Sep 11, 2007, at 7:23 AM, Jain, Anant (GE Heathcare) wrote:

So it did work but not completely. I mean the build worked but the example still does not load. I have checked and installed all the x.org packages (for FC4) but I still get this exception and the application does not start:

== /usr/java/jre1.5.0_10/bin/java -cp .:examples.jar:jna.jar com.sun.jna.examples.ShapedWindowDemo java.lang.UnsatisfiedLinkError: Unable to load library 'X11' at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java: 88) at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java: 127) at com.sun.jna.Library$Handler.<init>(Library.java:104) at com.sun.jna.Native.loadLibrary(Native.java:213) at com.sun.jna.Native.loadLibrary(Native.java:199) at com.sun.jna.examples.unix.X11.<clinit>(X11.java:173) at com.sun.jna.examples.WindowUtils$X11WindowUtils$4.run (WindowUtils.java:1 079) at com.sun.jna.examples.WindowUtils.whenDisplayable(WindowUtils.java:222) at com.sun.jna.examples.WindowUtils$X11WindowUtils.setWindowMask (WindowUtil s.java:1109) at com.sun.jna.examples.WindowUtils$NativeWindowUtils.setWindowMask (WindowU tils.java:345) at com.sun.jna.examples.WindowUtils.setWindowMask(WindowUtils.java:1119) at com.sun.jna.examples.ShapedWindowDemo.main(ShapedWindowDemo.java:247)

== Which particular package is still missing? Or is it something else?

-----Original Message----- From: Jain, Anant (GE Heathcare) Sent: Monday, September 10, 2007 5:34 PM To: 'use@jna.dev.java.net' Subject: RE: [jna-users] Example not working on Linux

The first link worked. Thanks a ton for that :) X11 libraries are required both to build the jar as well as run the examples.

I built the jar on a similar system which has the X11 libraries and now need to find a system where I can successfully run it. My target system is not bundled with it currently so will have to ask the software bundling team to put it in with the distro.

Hopefully things will work properly now.

Thanks a bunch guys :)