not able to import abeel util in a maven project

2019-09-04 11:59发布

I am going a project in maven and using Java-ML in it. While using this library i got error java.lang.ClassNotFoundException: be.abeel.util.GZIPPrintWriter

Now for removing this error, i am trying to import the missing class by import be.abeel.util.GZIPPrintWriter;

but the import statement is not working as i am not able to find the repository of the Abeel Javakit Tool (AJT) to write in the pom.xml to resolve the dependency.

How to resolve this dependency in maven. Please help.

Thanks in advance.

4条回答
够拽才男人
2楼-- · 2019-09-04 12:37

I used javaml-0.1.7.jar faced with the exact problem in my maven project. It easily get fixed when i added ajt-2.9.jar from this repo.

查看更多
Evening l夕情丶
3楼-- · 2019-09-04 12:41

It might not have been deployed to Maven Central or another Maven Repository.

In this case you can do the following:

查看更多
smile是对你的礼貌
4楼-- · 2019-09-04 12:52

You should import all the recommended libraries list below:

Required libraries: - Apache Commons Math: used in some algorithms, version 1.2 is included Apache Commons Math is distributed under Apache License 2.0 http://commons.apache.org/math/

  • Abeel Java Toolkit: used in some classes, version 1.20 is included AJT is distributed under GNU GPL 2 or later http://sourceforge.net/projects/ajt/

  • Jama: used in some algorithms, version 1.0.2 is included Jama is distributed as public domain software

查看更多
啃猪蹄的小仙女
5楼-- · 2019-09-04 12:54

I stumbled into the very same problem, and I did not want to do anything complicated.

That's when I realized that, in the javaml download, we have the following hierarchy: javaml-0.1.7 > lib > ajt-2.9.jar

So I just added, in my app/build.gradle, in the dependencies: compile fileTree(include: ['*.jar'], dir: 'libs/javaml-0.1.7/lib'). Worked like a charm. I can now go to sleep.

(note: I put my javaml folder in a custom libs/ folder, adapt the dir path to your needs)

查看更多
登录 后发表回答