-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.NoClassDefFoundError: com/twitter/common/util/Random$Util #111
Comments
Hi, are you using Maven or Gradle for dependency management? If not I would recommend it. Otherwise, you should be able to use Maven to build a jar including all dependencies with: "mvn assembly:assembly". |
Thanks. The problem was in Java 8. Basically in Java 8, by default DocLint is activated and checks for many things including @param and @return and will give error and will not build successfully. The solution will be adding this to the maven-javadoc-plugin:
This will remove those checks and build successfully. |
Hi, I'm working with Java 1.7 and I'm getting the same problem even including "-Xdoclint:none" configuration to the pom.xml file. I've created a .jar file with all dependencies of quikml and when I execute this command Maven command to obtain quickml-0.10.9-jar-with-dependencies.jar: pom.xml:
|
I've tried building and trying it in different ways but always I face this error:
Exception in thread "main" java.lang.NoClassDefFoundError: com/twitter/common/util/Random$Util
at quickml.supervised.classifier.decisionTree.TreeBuilder.(TreeBuilder.java:52)
at quickml.supervised.classifier.decisionTree.TreeBuilder.(TreeBuilder.java:69)
The line giving me error is this one:
TreeBuilder treeBuilder = new TreeBuilder();
Can I ask to make the built version (jar with all dependencies) available. I have all the dependencies in the path but still get the same error on Mac Yomesite with Java 1.8.
The text was updated successfully, but these errors were encountered: