1 year ago

#349032

test-img

hua

How to install ant package in java correctly?

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

java

ant

weka

j48

0 Answers

Your Answer

Accepted video resources