0

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

hua
  • 169
  • 9
  • You can find Ant here: https://ant.apache.org/ – Jesper Mar 29 '22 at 11:36
  • @Jesper yes, the video is also download ant from this website. – hua Mar 29 '22 at 11:47
  • I suspect that the problem might be because you are working in `C:\Program Files`, a path with a space in it. Probably the project's build file cannot handle this. Try putting your project in a directory that does not have a space in the path. For example into `C:\Project\FLC_Tools\...` – Jesper Mar 29 '22 at 13:20
  • @Jesper it really work! But the import package line in CPUTask.java still can not catch the ant package, what do I should do anything else? – hua Mar 30 '22 at 03:01
  • I can import ant package! put org.apache.tools.ant-1.6.5.jar in jdk/lib. But package problem are coming one by one...so many package I have to install manually, everyone have to do this like me? – hua Mar 30 '22 at 04:19

0 Answers0