简体   繁体   English

如何在Eclipse Kepler中添加JFreeChart?

[英]How to add JFreeChart in Eclipse Kepler?

I am going to develop a Java application. 我将开发一个Java应用程序。 It will collect the server counter information and shown it in a JFreeChart. 它将收集服务器计数器信息,并将其显示在JFreeChart中。 I am going to develop this in Eclipse Kepler with the help of Window Builder. 我将在Window Builder的帮助下在Eclipse Kepler中进行开发。 So anyone can help me by telling how to connect to Eclipse Window Builder with JFreeChart? 因此,任何人都可以通过告诉我如何使用JFreeChart连接到Eclipse Window Builder来帮助我?

  1. place jfreechart jars somewhere on your hard drive (i placed mine in C:\\Eclipse\\ext_libraries) 将jfreechart jars放置在硬盘驱动器上的某个位置(我将我的C放置在C:\\ Eclipse \\ ext_libraries中)

  2. Open Eclipse. 打开Eclipse。

  3. Start a new Java project like you normally would. 像通常那样启动一个新的Java项目。

  4. In the Package Explorer, right click your project and then click "Properties" 在包资源管理器中,右键单击您的项目,然后单击“属性”

  5. In the window that comes up, click the "Libraries" tab 在出现的窗口中,单击“库”选项卡

  6. Click "Add External JARs..." 单击“添加外部JAR ...”。

  7. Navigate to the folder you created, and highlight jcommon-1.0.x.jar (which ever version you have). 导航到您创建的文件夹,然后突出显示jcommon-1.0.x.jar(您使用的哪个版本)。

  8. Click "Open"; 点击“打开”; this will add that jar to the list of external libraries. 这会将那个jar添加到外部库列表中。

  9. Repeat 6-8 for jfreechart-1.0.x.jar and jfreechart-1.0.x-experimental.jar (if you want to use the experimental features) 对jfreechart-1.0.x.jar和jfreechart-1.0.x-experimental.jar重复6-8(如果要使用实验性功能)

  10. You should now have access to the vast array of types, methods, objects, etc. that JFreeCharts provides; 现在,您应该可以访问JFreeCharts提供的大量类型,方法,对象等。 you'll of course, need to add "import org.jfree.chart.CLASS_YOU_WANT" to use them, but you should be able to copy and paste various samples available on the Net directly into Eclipse with little modification. 当然,您需要添加“ import org.jfree.chart.CLASS_YOU_WANT”才能使用它们,但是您只需稍作修改就可以将网上可用的各种示例直接复制并粘贴到Eclipse中。

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

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