如何正确安装java中的ant包?
jdk 版本:17
我尝试在 weka 研究它,但我遇到了两个问题。
首先,我运行Run.java,编译器抛出错误:编译器找不到java_cup包。于是我按照这个tutor安装java_cup包,成功了。
其次,java_cup包中的CPUTask.java还有一个问题:编译器找不到org.apache.tools.ant包。所以我按照这个视频来安装它。视频中大约 5:40,我在终端中输入“ant -version”,并显示一个类似错误的句子。
抱歉,它是中文的。用英文,它说:“现在不能有 Files\FLC_Tools\java_cup_draw_tree。”但这是我必须安装的软件包。
我应该如何解决这个问题?我必须安装 java_cup 和 ant 软件包。
jdk version: 17
I'm trying to use j48 in weka for study it, but I got two problems.
First, I run the Run.java, and the complier throw a error: complier can not find java_cup package. So I follow this tutor to install java_cup package, it's successful.
Second, CPUTask.java in java_cup package have another problem: complier can not find org.apache.tools.ant package. So I follow this video to install it. about 5:40 in video, I type "ant -version" in terminal, and show a sentence like a error.
Sorry about that it is Chinese. in English, it said: "must not have Files\FLC_Tools\java_cup_draw_tree now." but it is the package I have to install.
How should I fix this problem? I have to install java_cup and ant package both.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论