如何正确安装java中的ant包?

发布于 2025-01-17 13:26:13 字数 1009 浏览 3 评论 0原文

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 软件包。

输入图片此处描述

这是 CPUTask.java 中的错误行 输入图片此处描述

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.

enter image description here

This is error line in CPUTask.java
enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文