Question: (Closed) NoClassDefFoundError of biojava
gravatar for sydghyyh14
4.5 years ago by
sydghyyh140 wrote:

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>(
 at btest.biotest.main(
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
 at$ Source)
 at$ Source)
 at Method)
 at 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 ?


forum • 1.6k views
ADD COMMENTlink written 4.5 years ago by sydghyyh140

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 :

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.


ADD REPLYlink written 4.5 years ago by Pierre Lindenbaum127k
Please log in to add an answer.
The thread is closed. No new answers may be added.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 842 users visited in the last hour