从源代码创建 jfreechart-1.5.3 JAR
我的程序正在尝试从旧版本的 JFreeChart 升级,我们正在使用 ant 进行编译并将 JFreeChart 作为 .jar 文件导入。我正在尝试使用以下方法将新的 jfreechart-1.5.3
源(我在他们的网站上找不到 jar)放入工作的 .jar 文件中:
jar cf jfreechart.jar jfreechart-1.5.3/src
当尝试使用新的 .jar 文件进行编译时。我收到“package org.jfree.chart”不存在的错误。如何使用最新 JFreeChart 版本的 .jar 文件更新我的程序?
My program is trying to upgrade from an old version of JFreeChart, we are using ant to compile and have JFreeChart imported as a .jar file. I am trying to get the new jfreechart-1.5.3
source (I cannot find a jar on their website) into a working .jar file by using:
jar cf jfreechart.jar jfreechart-1.5.3/src
When trying to compile with the new .jar file. I get the error that "package org.jfree.chart" does not exist. How do I update my program with a .jar file of the newest JFreeChart version?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如此处所示,您可以克隆存储库,使用所需标签签出分支并使用maven 构建发布 JAR。另请参阅从 JFreeChart 1.0.x 迁移
或者,下载所需的直接来自相应的 mvnrepository 目录的 JAR:
v1.5.2:mvnrepository > 目录。
v1.5.3: mvnrepository > 目录。
v1.5.4: mvnrepository > 目录。
As illustrated here, you can clone the repository, check out the branch with the desired tag and use maven to build the release JARs. See also Migration from JFreeChart 1.0.x
Alternatively, download the desired JARs directly from the corresponding mvnrepository directory:
v1.5.2: mvnrepository > directory.
v1.5.3: mvnrepository > directory.
v1.5.4: mvnrepository > directory.