JFreecharts 演示代码没有构建?

JFreecharts Demo Code does not build?

我从 ObjectRefinery 为 JFreeCharts 购买了 Docs/support。当 运行 出现以下情况时:

$ cd ant && ant
BUILD FAILED
/shared/jfreechart-1.0.19-demo/ant/build.xml:66: Warning: Could not find file
   /shared/jfreechart-1.0.19-demo/source/demo/orsoncharts/iStock_000003105870Small.jpg to copy.

实际上该文件在项目中的任何地方都不存在 - 或者 any jpg 就此而言:

freechart-1.0.19-demo $find . -name \*.jpg
 <no results>

那么如何构建这个演示代码?

Orsoncharts

在 build.xml and within the source code 中无处不在并被破坏。处理方法是:

  • 从该构建文件中删除对 orsoncharts 的几十个引用
  • 删除或删除 java 个来源
  • 从 demo/SuperDemo 中删除 orson 的引用和用法。java

然后

ant -f ant/build.xml all

你猜怎么着?这还不够。现在我们得到了一个所谓的未经许可的发行版。

所以我们仍然无法使用源代码。这整个基于 ant 的混搭是一个破烂的 hack。

此时答案为"Will the distributors put together a real buildable source distro (without Orson Charts) or not."

ZIP 文件中缺少两个文件,导致无法使用包含的 Ant 脚本重建演示 jar 文件。这已得到更正,一个新的 ZIP 文件已上传到我们的服务器。此外,您购买的商品已退款。