[Biojava-l] Problems for testing demos

Richard Holland richard.holland at ebi.ac.uk
Fri May 19 07:59:55 UTC 2006


This is a basic Java problem, not a BioJava one...

The class lives in the 'seq' folder, and is therefore part of the 'seq'
package. To run it, you must change to the 'demos' folder which contains
the 'seq' folder and type:

	java seq/TestEmbl.java

cheers,
Richard

On Thu, 2006-05-18 at 14:35 -0700, chen li wrote:
> Dear all,
> 
> I  am new to Biojava. I install 
> 1) JDk on my Windows XP under c:\Program
> Files\java\.....,
>  2)  biojava.jar, bytecode-0.92.jar,
>  commons-cli.jar,  commons-collections-2.1.jar
>  commons-dbcp-1.1.jar, commons-pool-1.1.jar all under
> c:\biojava folder. Then I go to >demos>seq and type
> javac  TestEmbl.java I get some information on the
> screen. After searching google  I put all *.jar files
> into this folder:
> 
> C:\Program Files\Java\jdk1.5.0_06\jre\lib\ext
> 
> I compile the code again:
> 
> go to >demos>seq and type
> 
> javac  TestEmbl.java 
> 
> and I get a new file and looks like it works:
> 
>  TestEmbl.class
> 
> Then I type 
> 
> java TestEmbl
> 
> I get these infomration on the screen:
> 
> Exception in thread "main"
> java.lang.NoClassDefFoundError: TestEmbl (wrong name:
> seq/TestEmbl)
>         at java.lang.ClassLoader.defineClass1(Native
> Method)
>         at java.lang.ClassLoader.defineClass(Unknown
> Source)
>         at
> java.security.SecureClassLoader.defineClass(Unknown
> Source)
>         at java.net.URLClassLoader.defineClass(Unknown
> Source)
>         at java.net.URLClassLoader.access$100(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)
>         at
> java.lang.ClassLoader.loadClassInternal(Unknown
> Source)
> 
> I am not sure how to fix it. I search Biojava archies
> but get no answers. Any idea will be aprreciated.
> 
> Li
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> _______________________________________________
> Biojava-l mailing list  -  Biojava-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/biojava-l
-- 
Richard Holland (BioMart Team)
EMBL-EBI
Wellcome Trust Genome Campus
Hinxton
Cambridge CB10 1SD
UNITED KINGDOM
Tel: +44-(0)1223-494416




More information about the Biojava-l mailing list