Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How add native libraries for existing corejava project in netbeans

2625008May 2 2014 — edited May 4 2014

Hi i have a project of biometric integration by java and i have that javaApi with me for that project i need to add native libraries through NetBeansIDE7.4.I am trying like this

  • Right click on the Project
  • Select Properties
  • Click on RUN
  • In VM Options TYPE -Djava.library.path="D:/bio-metric/SBXPC_CORE_130330/SBXPCJavaProxy.dll"
  • press Ok

but still I am getting Exception    java.lang.UnsatisfiedLinkError: no SBXPCJavaProxy in java.library.path



Please someone help me out to resolve this problem i am struggling  more I think i am understandable.

Comments

unknown-7404
  • In VM Options TYPE -Djava.library.path="D:/bio-metric/SBXPC_CORE_130330/SBXPCJavaProxy.dll"

Ok - ask yourself this question: Did I specify a PATH or did I instead, mistakenly specify a FILE?

Hint: the name of the parameter 'java.library.path' includes the word 'path'; it does NOT include the word 'file'.

2625008

Hi, I add only directory now I am getting exception as

Exception in thread "main" java.lang.UnsatisfiedLinkError: D:\bio-metric\SBXPC_CORE_130330\SBXPCJavaProxy.dll: Can't find dependent libraries.


I have added the directory like this -Djava.library.path="D:\bio-metric\SBXPC_CORE_130330"


unknown-7404
Hi, I add only directory now I am getting exception as

Exception in thread "main" java.lang.UnsatisfiedLinkError: D:\bio-metric\SBXPC_CORE_130330\SBXPCJavaProxy.dll: Can't find dependent libraries.

I have added the directory like this -Djava.library.path="D:\bio-metric\SBXPC_CORE_130330"

Ok - so your first problem is now solved. Java is finding that DLL.

The problem now is that the SBXPCJavaProxy.dll needs some other dlls and those cannot be found. You need to put those other dlls in that same folder or in the system path so the loader can find them.

If you don't know what other dlls are needed then you need to ask on a forum that supports/publishes that SBXPCJavaProxy.dll.

2625008

I have added the dependent  libraries like this, Am i correct?

or is there any  another method ? to add dependent libraries .

        System.loadLibrary("GEN_FONT");

        System.loadLibrary("SBPCCOMM");

        System.loadLibrary("SBXPCDLL");

        System.loadLibrary("SBXPCJavaProxy");

For this I am getting output.

1 - 4
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 1 2014
Added on May 2 2014
4 comments
3,176 views