Off topic:NoClassDefFoundError of biojava
0
0
Entering edit mode
8.6 years ago
sydghyyh14 • 0

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?

biojava • 2.2k views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 3449 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6