I am trying to run the examples that come with the Cetera SDK but i am getting a consistant error. Maybe someone would have faced this issue. Can you please let me know what i am missing while running the example. i am working on eclipse galilio. imported the FPLibrary.jar. Do i need to include the dlls also, if yes, how.
The error that has fallen in love with my code. just doesnt let it alone:
Exception in thread "main" java.lang.UnsatisfiedLinkError: com.filepool.natives.FPLibraryNative.setLastError(I)V
at com.filepool.natives.FPLibraryNative.setLastError(
Native Method)
at com.filepool.fplibrary.FPLibraryException.retrieveErrorString(Unknown Source)
at com.filepool.fplibrary.FPLibraryException. (Unknown Source)
at com.filepool.fplibrary.FPPool. (Unknown Source)
Yousuf - ensure you have installed the Centera SDK DLLs in a directory on your Windows PATH. After that, your code should fall out of love with that error.
Thanks Graham. I appreciate your inputs. I did figure this out. I actually tried to include the path of the dlls in the PATH attribute of the system but my java code refused to get it. Then I dumped all the dlls in the bin directory of the jdk and it worked.
The post you refer to detailed a workaround that worked for this user.
On a production site, you should have a properly configured Java JRE installed and available to the application environment. The Centera Java SDK is no different to any other application that uses JNI and has the same requirements.
I suggest that you perform a Google search on installing JNI based Java applications in order to be able to configure your environment properly.
We have literally hunders of ISV Java applications that are currently in use on production sites.
If you are still unable to do this and have problems on a particular production site then you should raise an EMC support call.
Exception in thread "main" java.lang.UnsatisfiedLinkError: com.filepool.natives.FPLibraryNative.setLastError(I)V
at com.filepool.natives.FPLibraryNative.setLastError(Native Method)
at com.filepool.fplibrary.FPLibraryException.retrieveErrorString(Unknown Source)
at com.filepool.fplibrary.FPLibraryException. (Unknown Source)
at com.filepool.fplibrary.FPPool. (Unknown Source)
at GetClusterInfo.storeFile(GetClusterInfo.java:549)
at GetClusterInfo.main(GetClusterInfo.java:466)
Does have anyone solved that?
PS: i do have noticed that setting library path through Environment Variables of windows7 seems to work while setting native libraries used by FPLibrary.jar though eclipse IDE don't. It seems the libraries path need to be defined as globally as possible.
I am also curious if anyone has solved this. I have added FPLibrary.jar to my CLASSPATH and all the DLLs to my PATH system variables. But after successfully running my application in WAS once, it will not work again if I restart the application without restarting the entire WAS Server and I get the UnsatisfiedLinkError.
the unsatisfied link error means it couldnt find the dll on your path.
I've no idea why it worked once for you and then stopped working.
If this is windows download from www.sysinternals.com and download their very handy suite of utils. Use procmon.exe to monitor your application to see what files it attempts to open, that should confirm that you are not finding a particular DLL
Hi, today I bumped to same problem. Sample weren't running from Eclipse ( java.lang.UnsatisfiedLinkError: com.filepool.natives.FPLibraryNative.setLastError) . The problem was that eclipse was running with and executing program with 32bit Java 7 JRE. It was one found in c:\Program Files (x86)\Java\jre7. When I have changed JRE to 64 bit (SDK installed in d:\java\jdk1.7.0_10) program runs fine. My setup is that FPLibrary.jar is added in eclipse as project dependency and DLLs are added in system env PATH variable.
gstuartemc
2 Intern
•
417 Posts
3676
0
Posted June 15th, 2010 06:00
Yousuf - ensure you have installed the Centera SDK DLLs in a directory on your Windows PATH. After that, your code should fall out of love with that error.