Start a Conversation

Unsolved

This post is more than 5 years old

18199

June 11th, 2010 14:00

Not able to use Centera SDK with Java.

Hi,

   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)

at test.vim.xam.RetrieveContent.main(

RetrieveContent.java:92)

regards,

Yousuf

2 Intern

 • 

417 Posts

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.

1 Rookie

 • 

7 Posts

June 15th, 2010 07:00

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.

Thanks for your help.

regards,

Yousuf

6 Posts

March 10th, 2011 04:00

Hi guys,

I did it just like yousufbadar do it and works perfect, but the problem is what to do when u want to use it in a machine that not has jdk? Production.

Thank you.

2 Intern

 • 

417 Posts

March 10th, 2011 06:00

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.

1 Message

March 13th, 2012 01:00

Hi Graham Stuart,

I also have the above error

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.RegisterApplication(Unknown Source)

at RetrieveContent.main(

RetrieveContent.java:67)

My classpath is:

hentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>










I have set the environment Path to point Centera_SDK-3.2.705 64bit lib64 folder (dlls), what else am I missing,

I am using Windows 7 64bit, so is it because FPLibrary.jar doesn't support in Windows 7?

April 17th, 2012 04:00

Hello, i have also such error.

Im using windows7 32bit and im trying to run the example (Centera_SDK-3.2.705): GetClusterInfo.java.

What is anoying is that it seems the path is fine (following instructions outputs the right path to my dlls):

String path = System.getProperty("java.library.path");

System.out.println(path);

but i still get:

D:\Centera_SDK-3.2.705\lib32

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.

6 Posts

May 8th, 2012 06:00

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.

409 Posts

June 21st, 2012 05:00

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

1 Message

March 20th, 2013 06:00

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.

Give it a try.

2 Posts

August 21st, 2013 01:00

Find the answer in another discusion ...

Error While connecting to Centera Server thru Java in Linux

thx

2 Posts

August 21st, 2013 01:00

Hi all

Got the same problem but on HP-UX 11i. Looking at the previous responses, the issue is concerning the dlls which i do not have on HP-UX. Therefore, i think i can translate dlls as libraries?

My LD_LIBRARY_PATH is set as LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:${ORACLE_HOME}/lib:.

any idea?

Thanks for the help.

September 27th, 2013 05:00

Hi all! I also faced this problem today on my Windows 7 machine. Centera release note pdf document says:
Environment and system requirements:

The EMC Centera SDK is developed on Microsoft Visual Studio 2005 SP1 (Visual Studio

8.0), and requires the msvcr80.dll C runtime library version 8.0.50727.6195 (which may

not be included on all target systems).

That was my case, mentioned dll with specified version was not installed on my machine. I was able to fix this by installing following security update: http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=26347

Hope this will help other people to save their time.

1 Message

August 19th, 2016 00:00

pavel_yurkevich. Thanks a lot! You saved me.

No Events found!

Top