

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
22 messages in net.java.dev.jna.usersRe: [jna-users] Unable to load a library| From | Sent On | Attachments |
|---|---|---|
| Simon BASLE | Jul 17, 2007 6:12 am | |
| Timothy Wall | Jul 17, 2007 9:16 am | |
| Simon BASLE | Jul 17, 2007 9:44 am | |
| Timothy Wall | Jul 17, 2007 10:10 am | |
| Simon BASLE | Jul 17, 2007 10:12 am | |
| Timothy Wall | Jul 17, 2007 11:18 am | |
| Nikolas Lotz | Jul 18, 2007 1:27 am | |
| Simon BASLE | Jul 18, 2007 5:35 am | |
| Nikolas Lotz | Jul 19, 2007 5:57 am | |
| Simon BASLE | Jul 19, 2007 6:07 am | |
| Nikolas Lotz | Jul 19, 2007 9:08 am | |
| Simon BASLE | Jul 24, 2007 8:40 am | |
| Simon BASLE | Jul 24, 2007 8:40 am | |
| Timothy Wall | Jul 24, 2007 9:55 am | |
| Timothy Wall | Jul 24, 2007 10:08 am | |
| Simon BASLE | Jul 25, 2007 6:00 am | |
| Simon BASLE | Jul 25, 2007 7:33 am | |
| Timothy Wall | Jul 25, 2007 7:53 am | |
| Timothy Wall | Jul 25, 2007 7:58 am | |
| Simon BASLE | Jul 25, 2007 8:29 am | |
| Timothy Wall | Jul 25, 2007 12:32 pm | |
| Timothy Wall | Jul 26, 2007 2:44 pm |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: [jna-users] Unable to load a library | Actions... |
|---|---|---|
| From: | Nikolas Lotz (nlo...@nde.ag) | |
| Date: | Jul 18, 2007 1:27:42 am | |
| List: | net.java.dev.jna.users | |
On Jul 17, 2007, at 1:12 PM, Simon BASLE wrote:
Correction to previous message : it doesn't work in fact if I don't use the Java 1.4 version (that comes with my Ubuntu distribution, so it is not the sun implementation I think). If I do System.load("/usr/lib/libsister.so"); System.load("/usr/lib/libfoo.so"); it works (in java 1.4)... If I remove the first load (sister), it says that I have an "undefined symbol" (which is declared in the sister library). If I run it in java 1.5 I get the UnsatisfiedLinkError no matter what. This seems to have something to do with JNI itself but I you have an idea it is welcome :)
Try it in Java 1.6 and see if you get any more information in the link error. Try setting LD_LIBRARY_PATH to /usr/lib (this will likely work). Compare the value of java.library.path in both versions (you might dump all system properties and compare them for likely suspects).
I think there's also an envariable similar to LD_LIBRARY_PATH (LD_DEBUG?) which if set causes the dynamic linker to produce debug information.
check out this link for more information: http://wlug.org.nz/LD_DEBUG
start your program with 'LD_DEBUG=libs ...' and scan the output for error- messages. if that does not help, try 'LD_DEBUG=symbols ...' to see if there are any symbols which can't be resolved.
-- Nikolas Lotz voice : +49-40-559 51 75 NDE Netzdesign und -entwicklung AG fax : +49-40-559 51 77 Postfach 61 03 15 mobile : +49-163-758-6751 D-22423 Hamburg e-mail : nlo...@nde.ag
Vorsitzende des Aufsichtsrates: Angelika Mozdzen Sitz und Registergericht: Hamburg, HRB 90934 Vorstand: Jens-U. Mozdzen USt-IdNr. DE 814 013 983







