如何将本机库文件夹添加到Netbeans中的现有项目 [英] How to add native library folder to existing project in Netbeans
本文介绍了如何将本机库文件夹添加到Netbeans中的现有项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一些本地文件.我需要将它们加载到我的项目中.如何在Netbeans中这样做?
I have some native files. I need to load those into my project. How can I do so in Netbeans?
我正在加载它们:
System.loadLibrary("SBXPCJavaProxy");
推荐答案
在Netbeans中这是相当向前的:
This is pretty forward in Netbeans:
- 右键单击该项目.
- 选择属性.
- 单击运行".
- 在VM选项 TYPE
-Djava.library.path="[dir]"
中. - 按确定.
- 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.
请注意[dir]应该是包含本机的文件夹的绝对路径.例如,如果您的本地人在C:\Natives
中,则[dir]应该为C:\Natives
.
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
.
这篇关于如何将本机库文件夹添加到Netbeans中的现有项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文