简体   繁体   English

如何从Netbeans 6中的环境变量添加库

[英]How to add libraries from an enviornment variable in Netbeans 6

If I have an environment variable named JAR_FILES with a semicolon separated list of jar files, is there a way to have Netbeans to automatically add all of these jar files to my project libraries so that I do not have to manually add each one? 如果我有一个名为JAR_FILES的环境变量,并用分号分隔了jar文件列表,是否可以让Netbeans自动将所有这些jar文件添加到我的项目库中,而不必手动添加每个JAR文件? I ask because there are many and they are not in the same directory. 我问是因为有很多而且它们不在同一目录中。

The only thing I can think of is to manually edit some of the build scripts (such as build.xml or those in nbproject), but I am assuming these may get overwritten by the IDE. 我唯一想到的就是手动编辑一些构建脚本(例如build.xml或nbproject中的脚本),但是我假设这些脚本可能会被IDE覆盖。

Why not use your own Global Library? 为什么不使用自己的全球图书馆? You can create a new one using the Library Manager (Tools->Libraries), you can add the required jars to it and then have all your projects use the same global library. 您可以使用库管​​理器(“工具”->“库”)创建一个新库,可以向其中添加所需的jar,然后让所有项目使用相同的全局库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM