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

  1. ,
    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.

  2. ,

    you can change your scala version to 2.11.11

java.lang.NoClassDefFoundError: org/xerial/snappy/LoadSnappy at htsjdk.samtools.util.SnappyLoader.<init>(SnappyLoader.java:86) at htsjdk.samtools.util.SnappyLoader.<init>(SnappyLoader.java:52) at htsjdk.samtools.util.TempStreamFactory.getSnappyLoader(TempStreamFactory.java:42) at htsjdk.samtools.util.TempStreamFactory.wrapTempOutputStream(TempStreamFactory.java:74) at htsjdk.samtools.util.SortingCollection.spillToDisk(SortingCollection.java:223) at htsjdk.samtools.util.SortingCollection.add(SortingCollection.java:166) at htsjdk.samtools.SAMFileWriterImpl.addAlignment(SAMFileWriterImpl.java:192) at htsjdk.samtools.AsyncSAMFileWriter.synchronouslyWrite(AsyncSAMFileWriter.java:36) at htsjdk.samtools.AsyncSAMFileWriter.synchronouslyWrite(AsyncSAMFileWriter.java:16) at htsjdk.samtools.util.AbstractAsyncWriter$WriterRunnable.run(AbstractAsyncWriter.java:117) at java.lang.Thread.run(Thread.java:745)Caused by: java.lang.ClassNotFoundException: org.xerial.snappy.LoadSnappy 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) ... 11 more