NoClassDefFoundError of biojava
I want to test biojava with code as following:
import org.biojava.nbio.core.exceptions.CompoundNotFoundException;
import org.biojava.nbio.core.sequence.*;
public class biotest {
public static void main(String[] args) throws CompoundNotFoundException {
System.out.println("Hello, biojava!");
DNASequence dnaseq = new DNASequence("ATGCATGC");
}
}
I got error like this:
Hello, biojava!
Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at org.biojava.nbio.core.sequence.template.AbstractSequence.<clinit>(AbstractSequence.java:52)
at btest.biotest.main(biotest.java:12)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 2 more
Who can tell me how to fix it?
• 2,291 views
•
link
0 answers
No answers yet.
Log in to answer this question.
Hello sydghyyh14!
We believe that this post does not fit the main topic of this site.
Not related to bioinformatics. This is just a CLASSPATH problem : http://stackoverflow.com/questions/12926899 http://stackoverflow.com/questions/29421615
For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.
If you disagree please tell us why in a reply below, we'll be happy to talk about it.
Cheers!