简体   繁体   English

s如何在NetBeans的Web Free Form应用程序中添加外部JAR文件?

[英]sHow do I add external JAR files in a Web Free Form Application in NetBeans?

I have a Red5 application that i want to work on using NetBeans 6.8. 我有一个Red5应用程序,我想使用NetBeans 6.8进行工作。

I know I can use a web Free-Form Application, the only problem that I'm having is to add external jar files. 我知道我可以使用Web自由格式应用程序,唯一的问题是添加外部jar文件。

When I go to the project's properties, Where exactly do I add the external jars that I need in order to properly compile the application? 当我转到项目的属性时,究竟在哪里添加我需要的外部jar才能正确地编译应用程序?

update 更新

i think that the following URL addresses my problem but i can't really understand the solution. 我认为以下网址解决了我的问题,但我无法真正理解解决方案。

http://www.bradmcevoy.com/blogs/netbeans_ant_ivy.html http://www.bradmcevoy.com/blogs/netbeans_ant_ivy.html

You can add the external libraries to your project's Libraries folder, or you can add them in the NetBeans' Tools > Libraries dialog. 您可以将外部库添加到项目的Libraries文件夹中,也可以在NetBeans的“ Tools > Libraries对话框中添加它们。 The latter can be shared among several projects. 后者可以在多个项目之间共享。 This answer includes illustrations. 答案包括插图。

Addendum: For free-form type projects, the Projects > Properties mentions, "Any settings modified on this panel are for IDE purpose only and do not change the build script. If you want to make changes in build process, please modify your build script manually." 附录:对于自由格式的项目,“ Projects > Properties提到:“在此面板上修改的任何设置仅用于IDE,并且不更改构建脚本。如果要在构建过程中进行更改,请修改构建脚本。手动。”

found a solution here but it's probably for a lower version of netbeans: 在这里找到了解决方案,但可能是针对较低版本的netbeans:

http://forums.netbeans.org/viewtopic.php?p=5329 http://forums.netbeans.org/viewtopic.php?p=5329

i get an error on the tag. 我在标签上看到错误。

Since it is a free-form project, you have to make sure that your build script puts the correct jars into the compile-time classpath. 由于它是一个自由格式的项目,因此必须确保构建脚本将正确的jar放入编译时的类路径中。 You also want to make your Netbeans project libraries match for auto-complete purposes and error highlighting and such (ie when you view Project Properties->Java Sources ClassPath). 您还希望使Netbeans项目库匹配以实现自动完成目的和突出显示错误(例如,当您查看Project Properties-> Java Sources ClassPath时)。

好的,我终于通过使用以下URL中的分步教程重新创建项目来解决了该问题: http : //blogs.oracle.com/coreqa/entry/setting_up_freeform_project_correctly

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

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