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:Jain, Anant (GE Heathcare) (anan@ge.com)
Date:Sep 10, 2007 5:03:45 am
List:net.java.dev.jna.users

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 :)

AJ

-----Original Message----- From: Wayne Meissner [mailto:wmei@gmail.com] Sent: Monday, September 10, 2007 2:28 PM To: use@jna.dev.java.net Subject: Re: [jna-users] Example not working on Linux

Jain, Anant (GE Heathcare) wrote:

Yes, I did check it out on a windows machine and copied it to a Linux box.. I tried what you suggested and manually removed the CRLFs but it did not help. Each time I tried the ant build, they reappeared.

So I tried and ran dos2unix to remove in them any file. But that did not help either and I still receive the same error. Anything else I can try? I will try to check out the source directly on the Linux box but that does not look very possible since the box is

not connected directly to the net..

As a very last resort, you can try downloading a snapshot of the JNA source code from http://gstreamer-java.googlecode.com/files/jnalib-20070909-r283.tar.bz2

Copy the file from your windows machine to linux _without_ unzipping it, then use "tar jxvf jnalib-20070909-r283.tar.bz2" to extract it. Build as usual after that.

There is also a copy of a built jar with a linux-i386 libjnidispatch.so compiled on ubuntu 6.06 at http://gstreamer-java.googlecode.com/files/jna-20070909-r283.jar, so that might work out of the box for you.

These are _NOT_ official JNA releases in anyway, shape or form, just snapshots I made available for gstreamer-java users. If you have problems, you're going to have to find a way to get the real JNA source on that machine.