java 如何使用 netbeans IDE 添加 jFreeChart 库?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4311312/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to add jFreeChart library with the netbeans IDE?
提问by faree
I am having jCommon(jFreeChart) library file. (It contains ant, checkstyle, docfiles, experimental, lib, source, swt, tests, ChangeLog, jfreechart-1.0.13-demo.jar, licence-LGPL.txt, maven-jfreechart-project.xml, NEWS,Readme.txt) I've used NetbeansIDE6.9 to add into the netbeans new library there are three tabs classpath,source,javadoc. javadoc tab need index-all.html file. How to add this and run the application?
我有 jCommon(jFreeChart) 库文件。(它包含 ant、checkstyle、docfiles、experimental、lib、source、swt、tests、ChangeLog、jfreechart-1.0.13-demo.jar、licence-LGPL.txt、maven-jfreechart-project.xml、NEWS、Readme.txt ) 我使用 NetbeansIDE6.9 添加到 netbeans 新库中有三个选项卡类路径、源代码、javadoc。javadoc 选项卡需要 index-all.html 文件。如何添加它并运行应用程序?
回答by Adeel Ansari
Project properties -> Libraries -> Add JAR/Folder -> Browser JAR
Project properties -> Libraries -> Add JAR/Folder -> Browser JAR
To add source, you need to have source downloaded. As I can see in your given list, you are having one. You can select JAR you just added, using a method I have stated above, and click Edit
. There you will have another pop-up with the tab
"Sources". You can add source JAR in there.
要添加源,您需要下载源。正如我在您给定的列表中看到的那样,您正在拥有一个。您可以使用我上面提到的方法选择刚刚添加的 JAR,然后单击Edit
。在那里,您将有另一个带有tab
“来源”的弹出窗口。您可以在其中添加源 JAR。
To add Javadocs, you need to download it first. Then just add that zip
file, most probably by following similar steps.
要添加 Javadoc,您需要先下载它。然后只需添加该zip
文件,很可能按照类似的步骤。
P.S.:Learn Maven, you will love it. It will manage all these things for you automagically. You just need to provide the artifacts.
PS:学习Maven,你会爱上它。它将自动为您管理所有这些事情。您只需要提供工件。