java.lang.NoClassDefFoundError: org/nd4j/linalg/api/blas/Blas

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

A few things cause this exception:
1) Check if you have all jars and if they're in the correct path.
2) Your classpath might be broken, you can define it in the command line with java -cp yourClassPath or at your IDE if you're using one.

,
Expert tip

This might be an issue with the file location in the Spark submit command. Try it with

spark-submit --master spark://master:7077 \
     hello_world_from_pyspark.py {file location}

Solutions on the web

via GitHub by rkraneis
, 1 year ago
org/nd4j/linalg/cache/ConstantHandler
via struts-user by Richard Yee, 1 year ago
org/apache/commons/logging/LogFactory at org.apache.struts.util.MessageResources.<clinit>(MessageResources.java:105) at org.apache.struts.taglib.logic.RedirectTag.<clinit>(RedirectTag.java:134)
via Google Groups by Kristian Domagala, 4 months ago
org/mortbay/log/Logger
via Google Groups by Mike Dillon, 2 years ago
org/apache/commons/cli/ParseException
via nabble.com by Unknown author, 1 year ago
org/apache/commons/cli/ParseException
java.lang.ClassNotFoundException: org.nd4j.linalg.api.blas.Blas
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.nd4j.linalg.factory.Nd4j.initWithBackend(Nd4j.java:5413)
at org.nd4j.linalg.factory.Nd4j.initContext(Nd4j.java:5352)
at org.deeplearning4j.nn.conf.NeuralNetConfiguration$Builder.seed(NeuralNetConfiguration.java:633)
at com.example.ImageClassificationUsingCNN.AnimalsClassification.alexnetModel(AnimalsClassification.java:264)
at com.example.ImageClassificationUsingCNN.AnimalsClassification.run(AnimalsClassification.java:135)
at com.example.ImageClassificationUsingCNN.AnimalsClassification.main(AnimalsClassification.java:315)

Users with the same issue

51 times, 53 minutes ago
1427 times, 3 hours ago
Once, 19 hours ago
3 times, 1 day ago
Once, 2 days ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.