Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Eclipse 中,您可以为项目中的每个 jar 文件添加本机库位置。我更喜欢这种方法,而不是-Djava.library.path向 VM 参数添加 a 。netbeans 中是否有等价物,还是我坚持使用-D?
-Djava.library.path
-D
这与这个问题有关: How to set the java.library.path from Eclipse
据我所阅读和尝试的所有内容,您必须-Djava.library.path在 netbeans 中使用。
【项目】——右键——属性——库——编译——添加JAR/文件夹——[yourjar.jar](+对话框右侧的“绝对路径”)