0
我想在我的程序中导入import org.jfree.chart.fx.ChartViewer;
。经过一番研究,我发现我需要构建build-fx.xml
文件,以便将该软件包包含在我的JFreeChart jar中。所以我在终端设置中使用了一行代码来构建ant ant -buildfile build-fx.xml
,但是我在下面的输出中显示了一个错误。难道我做错了什么?构建JFreeChart蚂蚁文件“build-fx.xml”
C:\Users\dan\Desktop\jfreechart-1.0.19\ant>ant -buildfile build-fx.xml
Buildfile: C:\Users\danie\Desktop\jfreechart-1.0.19\ant\build-fx.xml
initialise:
compile:
[mkdir] Created dir: C:\Users\danie\Desktop\jfreechart-1.0.19\build
[javac] Compiling 629 source files to C:\Users\danie\Desktop\jfreechart-1.0.19\build
[javac] C:\Users\danie\Desktop\jfreechart-1.0.19\source\org\jfree\chart\fx\ChartViewer.java:122: error: getUserAgentStylesheet() in ChartViewer cannot override getUserAgentStylesheet() in Region
[javac] protected String getUserAgentStylesheet() {
[javac] ^
[javac] attempting to assign weaker access privileges; was public
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error
BUILD FAILED
C:\Users\dan\Desktop\jfreechart-1.0.19\ant\build-fx.xml:62: Compile failed; see the compiler error output for details.
Total time: 6 seconds
对不起,如果这是显而易见的,这是我第一次不得不用蚂蚁建造一个罐子。