Unsolved
This post is more than 5 years old
6 Posts
0
3017
December 30th, 2009 07:00
Testing SDK on Ubuntu: Is it possible?
Hello!
I'm developing a Java application which should write on a Centera CAS using the SDK.
The production machine will run a Red Hat Linux, but for development only, I need to use an Ubuntu 9.04 Desktop.
Is it possible? I ran the installation script and added the default installation directory to the PATH environment variable, but I'm having a
java.lang.UnsatisfiedLinkError: com.filepool.natives.FPLibraryNative.setLastError(I)V
when calling
vPool = new FPPool (poolAddress);
The code used to work on Windows, which I cannot temporarily use. I don't need performance or special features, just writing and reading some files...
Thank you advance and have a happy new year!
No Events found!
holgerjakob_c0722c
2 Intern
•
337 Posts
1
December 30th, 2009 07:00
HI
You should not have issues between the two platforms.
Did you install the java stuff required?
After installing the sdk, please vi /etc/ld.so.conf and add the pass for your os bit size eg /usr/local/Centera_SDK/32/ and then run a ldconfig.
Holger
davidec1
6 Posts
0
December 30th, 2009 08:00
Thanks, you helped me find out where to investigate further, but I added
include /usr/local/Centera_SDK/lib/32/
to ld.so.conf and nothing changed.
I guess I'll need to do something else...
YT.Kim
20 Posts
0
December 30th, 2009 19:00
Did you install SDK for Linux GCC-4? Are you using 64-bit or 32-bit Ubuntu? Did you set LD_LIBRARY_PATH to /usr/local/Centera_SDK/lib/32 or 64?
Please check those things to verify that loading of SDK libraries is ok.
Thank you
Happy new year
YT
davidec1
6 Posts
0
January 3rd, 2010 06:00
Sorry for the delay, but unfortunately I'm here again on the same thread...
sudo ldconfig /usr/local/Centera_SDK/lib/32
ldconfig -p and saw that they were
Still no success, though, and I get the same error...
I still didn't set the LD_LIBRARY_PATH successfully: I tried setting it in various ways, none of which actually create the variable persistently (they all work when I change existing variables, but LD_LIBRARY_PATH is not set by default)! I found on Ubuntu forums that this variable is not used, so I thought that once libraries are loaded, everything should be ok... NOPE...
Please, what suggestions do you have?
Thank you again in advance!
davidec1
6 Posts
0
January 4th, 2010 01:00
Hello again!
I found the issue: The Java VM machine on Ubuntu didn't use the system libraries and I had to specify
-Djava.library.path=/usr/local/Centera_SDK/lib/32
Thanks for your help!