user3475175
user3475175

Reputation: 83

How to add native library folder to existing project in Netbeans

I have some native files. I need to load those into my project. How can I do so in Netbeans?

I'm loading them with:

System.loadLibrary("SBXPCJavaProxy");

Upvotes: 1

Views: 2371

Answers (1)

MaVRoSCy
MaVRoSCy

Reputation: 17839

This is pretty forward in Netbeans:

  • Right click on the Project.
  • Select Properties.
  • Click on RUN.
  • In VM Options TYPE -Djava.library.path="[dir]".
  • Press Ok.

Basically you give directions to the compiler in which folders to search for available packages.

Note that [dir] should be an absolute path to the folder containing your natives. For example, if your natives are in C:\Natives then [dir] should be C:\Natives.

Upvotes: 2

Related Questions