我需要在我的asp.net应用程序中使用openForecast.jar,因为我在这里和那里阅读并找到了IKVM,当我在cmd中写道时
ikvmc openForecast.jar
然后我收到了像这样的警告信息
D:\Bobby\Telkom Project\ikvm-0.44.0.5\bin>ikvmc OpenForecast-0.4.0.jar
Note IKVMC0002: output file is "OpenForecast-0.4.0.dll"
Warning IKVMC0100: class "org.jfree.data.time.TimeSeries" not found
Warning IKVMC0100: class "org.jfree.data.time.RegularTimePeriod" not found
Warning IKVMC0100: class "org.jfree.data.time.TimeSeriesDataItem" not found
Warning IKVMC0111: emitted java.lang.NoClassDefFoundError in "net.sourceforge.op
enforecast.input.TimeSeriesBuilder.<init>(Lorg.jfree.data.time.TimeSeries;)V"
("org.jfree.data.time.TimeSeries")
Warning IKVMC0111: emitted java.lang.NoClassDefFoundError in "net.sourceforge.op
enforecast.input.TimeSeriesBuilder.<init>(Lorg.jfree.data.time.TimeSeries;Ljava.
lang.String;)V"
("org.jfree.data.time.TimeSeries")
Warning IKVMC0111: emitted java.lang.NoClassDefFoundError in "net.sourceforge.op
enforecast.input.TimeSeriesBuilder.build()Lnet.sourceforge.openforecast.DataSet;
"
("org.jfree.data.time.TimeSeries")
Warning IKVMC0111: emitted java.lang.NoClassDefFoundError in "net.sourceforge.op
enforecast.input.TimeSeriesBuilder.build(Lorg.jfree.data.time.TimeSeriesDataItem
;)Lnet.sourceforge.openforecast.DataPoint;"
("org.jfree.data.time.TimeSeriesDataItem")
Warning IKVMC0111: emitted java.lang.NoClassDefFoundError in "net.sourceforge.op
enforecast.output.TimeSeriesOutputter.output(Lnet.sourceforge.openforecast.DataP
oint;Ljava.lang.String;)V"
("org.jfree.data.time.TimeSeriesDataItem")
我还发现openForecast包含大约6个类文件和3个subFolder,每个文件包含几个类文件。 我需要帮助为什么会发生这种情况以及如何解决它(因为IKVM本身的文档仍然让我无处可去),谢谢
答案 0 :(得分:1)
第一个提示:只需忽略警告并使用代码即可。 Java jar经常引用除了您不关心的特定场景之外未使用的外部代码。
另一种方法是找到org.jfree.data.time类应该来自哪里并获取该jar并将其链接(但是你会冒着它也有一些悬空依赖性的风险)。