Question: (Closed) NoClassDefFoundError of biojava
0
gravatar for sydghyyh14
3.7 years ago by
sydghyyh140
China
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>(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 ?

 

forum • 1.4k views
ADD COMMENTlink written 3.7 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 : 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!

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

Help
Access

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