46202

not able to import abeel util in a maven project

Question:

I am going a project in maven and using <a href="http://java-ml.sourceforge.net/" rel="nofollow">Java-ML</a> 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.

Answer1:

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

In this case you can do the following:

<ul><li>

Add the JAR to your corporate Maven Repository (see here for Nexus: <a href="http://blog.sonatype.com/people/2008/11/adding-a-jar-to-a-maven-repository-with-sonatype-nexus/" rel="nofollow">http://blog.sonatype.com/people/2008/11/adding-a-jar-to-a-maven-repository-with-sonatype-nexus/</a>)

</li> <li>

Try to get the JAR deployed to Maven Central:

<ol><li>

Ask the project owner to deploy the JAR to Maven Central. Here is the documenation how the project owner can do this: <a href="https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide#SonatypeOSSMavenRepositoryUsageGuide-9.StageaRelease" rel="nofollow">https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide#SonatypeOSSMavenRepositoryUsageGuide-9.StageaRelease</a>

</li> <li>

If the project owner does not respond but the license is compatible with Maven Central requirements: <a href="https://docs.sonatype.org/display/Repository/Uploading+3rd-party+Artifacts+to+The+Central+Repository" rel="nofollow">https://docs.sonatype.org/display/Repository/Uploading+3rd-party+Artifacts+to+The+Central+Repository</a>

</li> </ol></li> </ul>

Answer2:

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 <a href="http://commons.apache.org/math/" rel="nofollow">http://commons.apache.org/math/</a>

<ul><li>

Abeel Java Toolkit: used in some classes, version 1.20 is included AJT is distributed under GNU GPL 2 or later <a href="http://sourceforge.net/projects/ajt/" rel="nofollow">http://sourceforge.net/projects/ajt/</a>

</li> <li>

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

</li> </ul>

Answer3:

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)

Answer4:

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 <a href="https://github.com/alexeygrigorev/maven-repo/blob/master/be/abeel/ajt/2.9/ajt-2.9.jar" rel="nofollow">this repo</a>.

Recommend

  • linq-to-sql SingleOrDefault return when null
  • How to engage a Resumable upload to Google Drive using google-api-ruby client?
  • Disable table of contents for documents
  • Sitecore Web forms for marketers 2.4 file upload on content delivery server error (WFFM)
  • Maven deploy secondary file to repository
  • How rooting is achieved programmatically?
  • Did back key destroy an activity?
  • how tensorflow worker driver training process and cause variables update on ps job?
  • WP7 - read from CSV file? Or what to do with the data?
  • Android NDK vs iOS - performance issue [closed]
  • Grails eager fetch doesn't retrieve all data
  • still not find package, after 'mvn install'
  • Maven repository location is not updated in eclipse
  • How to extract a number from a string [duplicate]
  • Google Calendar Api is not showing event list
  • How to get a list with description of all dba packages
  • JConsole Main class
  • How to resolve dependencies from one gradle project to another gradle project in my Eclipse workspac
  • integrate POCO library in android ndk
  • Separate ID and Class for JS and CSS
  • “mvn clean generate-source” could not resolve dependencies
  • In Java, how can I construct a File from a resource?
  • Android Studio Can't Find tools.jar
  • How do I include a SWC in an AS2 Flash project?
  • How to add a focus style to an editable ComboBox in WPF
  • How do I superscript characters in a UIButton?
  • Zurb Foundation _global.scss meta styles for js?
  • Installing iPhone App to iPhone
  • How to run “Deployd” on port 80 instead of port 5000 in webserver.
  • Abort upload large uploads after reading headers
  • Launch Runnable Jar from Web Start
  • Is my CUDA kernel really runs on device or is being mistekenly executed by host in emulation?
  • RectangularRangeIndicator format like triangular using dojo
  • Cross-Platform Protobuf Serialization
  • QuartzCore.framework for Mono Develop
  • RestKit - RKRequestDelegate does not exist
  • Data Validation Drop Down Box Arrow Disappearing
  • Revoking OAuth Access Token Results in 404 Not Found
  • Can Visual Studio XAML designer handle font family names with spaces as a resource?
  • XCode 8, some methods disappeared ? ex: layoutAttributesClass() -> AnyClass