UnsatisfiedLinkError with Java1.6 in AIX6.1


 
Thread Tools Search this Thread
Operating Systems AIX UnsatisfiedLinkError with Java1.6 in AIX6.1
# 1  
Old 05-27-2011
UnsatisfiedLinkError with Java1.6 in AIX6.1

Hi Folks,

I'm facing the below error when loading my library on AIX6.1
Code:
java.lang.UnsatisfiedLinkError: marimba (A file or directory in the path name do
es not exist.)
        at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1013)
        at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:977
)
        at java.lang.System.loadLibrary(System.java:470)
        at com.marimba.desktop.FileSystem.loadLibrary(FileSystem.java:52)
        at com.marimba.desktop.UnixDesktop.init(UnixDesktop.java:169)
        at com.marimba.desktop.Desktop.getDesktop(Desktop.java:1803)
        at com.marimba.apps.tuner.Tuner.main(Tuner.java:5917)

Java Version used is 1.6
The .so file is of 64-bit version.Below command confirms this
Code:
bash-4.0# file libmarimba.so
libmarimba.so: 64-bit XCOFF executable or object module not stripped

I tried setting all variables, java.library.path, LIBPATH, LD_LIB_PATH and JVM_LIB_DIR to include the path of my library

Also even a sample java program with only a single line,
Code:
System.load("/opt/QIP_EndPoint/Tuner/lib/libmarimba.so");

fails to load the library with java1.6 But the same sample program loads it with java 1.5

I also see more changes in jre/bin folder of IBM's java1.6 like libjava.a and few other files missing

Could anyone please help me with how this library can be loaded.

Regards,
Bharath M

Last edited by pludi; 05-27-2011 at 10:43 AM..
# 2  
Old 05-28-2011
Quote:
Originally Posted by Bharath_M
Could anyone please help me with how this library can be loaded.
Just a guess: have you checked the filemode of the library? To access it you must be able to read it ("r--"-flag) and probably to execute it ("--x"-flag). You also need to have r-x for the directory in which the file is located.

If you are unsure: post the output of "ls -l /path/to/libmarimba.so", of "ls -ld /path/to" and the output of "id".

I hope this helps.

bakunin
# 3  
Old 05-29-2011
Hi Bakunin,

Thanks for your reply...

I have also tried changing the file permissions of the file by using "chmod 777 libmarimba.so" command...

Still it dint work..

Below are the results of commands you have asked to execute,

Code:
bash-4.0# ls -l libmarimba.so
-rwxrwxrwx    1 root     system        45889 10 May 20:30 libmarimba.so
bash-4.0# ls -ld libmarimba.so
-rwxrwxrwx    1 root     system        45889 10 May 20:30 libmarimba.so

Could you please help me understand what's going wrong...

Regards,
Bharath M

Moderator's Comments:
Mod Comment edit by bakunin: please use CODE-tags when posting code or terminal-output. It enhances readability. Thank you.

Last edited by bakunin; 05-30-2011 at 05:09 AM..
# 4  
Old 05-30-2011
Quote:
Originally Posted by Bharath_M
H
Below are the results of commands you have asked to execute,

Code:
bash-4.0# ls -l libmarimba.so
-rwxrwxrwx    1 root     system        45889 10 May 20:30 libmarimba.so

Sorry, i think we have a misunderstanding here: i asked you to check the permissions of the file itself (which you did) and the directory where it resides. I admit that the permissions of the file itself should not prevent its usage even if they are a bit dangerous (everybody could change this file, which isn't a good idea - change the permissions to "755", removing write-access for world and the group).

As i do not know where your library resides, lets suppose it is "/somewhere/yourlib/libmarimba.so". You need to check the permissions of the file itself (which you did) and the permissions of the directory, where it resides:

Code:
ls -ld /somewhere/yourlib

I hope this helps.

bakunin
# 5  
Old 05-30-2011
Hi Bakunin,

That was misunderstanding from my end. Please find below the output of commands you have asked for,
Code:
bash-4.0# ls -ld /opt/QIP_EndPoint/Tuner/lib
drwxr-x---   12 root     system         4096 30 May 20:34 /opt/QIP_EndPoint/Tuner/lib

bash-4.0# ls -l /opt/QIP_EndPoint/Tuner/lib/libmarimba.so
-rwxrwxrwx    1 root     system        45889 10 May 20:30 /opt/QIP_EndPoint/Tune
r/lib/libmarimba.so

Regards,
Bharath M

Last edited by Scott; 05-30-2011 at 03:16 PM.. Reason: Code tags, please...
# 6  
Old 05-31-2011
Quote:
Originally Posted by Bharath_M
Code:
bash-4.0# ls -ld /opt/QIP_EndPoint/Tuner/lib
drwxr-x---   12 root     system         4096 30 May 20:34 /opt/QIP_EndPoint/Tuner/lib

I have marked bold what is probably the culprit: issue the following (as user root):

Code:
chmod 755 /opt/QIP_EndPoint/Tuner/lib

and i suppose it will work. You may want to read about "filemodes" or "file permissions" in UNIX to understand the problem.

I hope this helps.

bakunin
# 7  
Old 05-31-2011
Hi Bakunin,

I tried modifying the file permission on the folder level with 755 and 777 as well...

Still I'm getting this unsatisfiedLinkError...

Regards,
Bharath M
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Upgrade AIX 5.3 to AIX6.1

Dear Guys .. I'm going to Upgrade one of the servers AIX 6.1 I want to stop rootvg mirror to save the mirror then upgrade to AIX 6.1 this is to help me in rollback if something goes wrong but .. can anyone help me how to make sure that system is relay mirrored and how to know that second... (10 Replies)
Discussion started by: top.level
10 Replies

2. AIX

How many Core in AIX6 & AIX7?

How many Core in AIX6 & AIX7 .. Please guys I want commands to know how many Core in these two different version please i need exact command ? (2 Replies)
Discussion started by: top.level
2 Replies

3. AIX

NFS problem AIX6.1

Hello, I have a problem with an NFS file system. Both AIX servers are AIX6.1 and uses NFS version 3. The problem is that at some point the client server cannot connect to the NFS anymore and when i do df -k it displays the message NFS server <server> not responding still trying. i run the... (2 Replies)
Discussion started by: omonoiatis9
2 Replies

4. AIX

AIX6: Getting Out of memory error during SFTP

Hi all the gurus out there, I am trying to SFTP about 30000 small files (4MB each at most) but I'm getting "xrealloc: out of memory" error. Anyone encountered this before? I'm on AIX6. (4 Replies)
Discussion started by: LuckySkunk
4 Replies

5. AIX

RS/6000 server and AIX6.1 question

Hello all. This is my first post on here and I have a question. Recently I was asked how you would go about backing up data from the server to a tape drive that is attached to the RS/6000 system. Assuming that the systems are all new it would be great if someone has a step by step guide that would... (4 Replies)
Discussion started by: aten
4 Replies

6. UNIX for Dummies Questions & Answers

java1.6 for rhel5 32 bit

where can I download java1.6 for rhel5 32 bit. find it hard to search on the net. thanks (3 Replies)
Discussion started by: lhareigh890
3 Replies

7. AIX

SFTP to AIX6.1 EFS

Hello all, my first post so please be gentle! I have 2 x AIX 6.1.4.0 environments, one has EFS enabled and the other does not. I have installed SSH & SSL on both systems, and configured SFTP using SSL authentication between both boxes: openssh.base.client 5.2.0.5300 COMMITTED Open Secure... (3 Replies)
Discussion started by: PJMCK
3 Replies

8. Solaris

UnsatisfiedLinkError libLicense.so: ld.so.1: java: fatal: libssl.so.0.9.8: open faile

Hi Guys, Please help me out. I am new to solaris. I am using solaris 10 ___________________________________________________________ public class Filecheck{ public static void main(String args) { System.out.println("LD_LIBRARY_PATH is : "+System.getProperty("java.library.path"));... (5 Replies)
Discussion started by: josh_chrisin
5 Replies

9. UNIX for Dummies Questions & Answers

Receiving error on Unix server-- java.lang.UnsatisfiedLinkError: registerNatives

Hi all, This is my first shell script, so I'm hoping the problem is that I'm just missing something, and not something bigger. I have a Java application that I wrote in WSAD that reads data from an Excel file and inserts values into a DB2 database. I'm able to run it successfully in WSAD. I... (4 Replies)
Discussion started by: loveToBlade
4 Replies

10. Linux

java unsatisfiedLinkError

I have an ant build file im using to build and run a software package im developing. I'm writing an automatic build script that will each night pull a clean project from CVS, build it, and run some tests on it. I have everything running but the tests. The test requires the running of a seperate... (0 Replies)
Discussion started by: kingfinny
0 Replies
Login or Register to Ask a Question