Hi Dr Chen,
 
You say that you have placed the jar files in a c:\biojava directory, but your classpath entries don't seem to be respecting this. Have you tried the classpath:
 
set CLASSPATH=CLASSPATH=C:\biojava\biojava.jar;C:\biojava\xerces.jar;C:\biojava\bytecode.jar;.
 
A good check to make sure things are in the classpath is to use the javap program. Try:
 
javap java.lang.String
 
You should get a lot of text describing the methods on the String class. Now try:
 
javap org.biojava.bio.Annotation
 
You should get text describing the methods on Annotation in biojava. If not, your classpath is incorrectly set, or the .jar archive is corrupted. To check the jar, change into the c:\biojava directory and type:
 
jar -tf biojava.jar
 
You should get a long listing of all the files in the archive. If you get an error message about the .jar being corrupted, then that is your problem.
 
I hope some of this helps. If you are still having problems then post to the list again, or come onto chat at:
 
irc.openprojects.net
#biojava
 
Best,
 
Matthew
 
Dear Biojava friends

I have donwnloaded the three files biojava-1.21jar, bytecode-0.90.jar and xerces.ar on my windows2000 machine. I put them in the directory  c:\biojava. I set up the class path CLASSPATH=C:\biojava.jar;C:\xerces.jar;C:\bytecode.jar;.using control panel , system, user variables.
when I compile a demo progra GCContent.java , I get compile err,

biojava/GCContent.java [3:1] package org.biojava.bio.seq does not exist
import org.biojava.bio.seq.*;
^
biojava/GCContent.java [4:1] package org.biojava.bio.seq.io does not exist
import org.biojava.bio.seq.io.*;
^
biojava/GCContent.java [18:1] cannot resolve symbol
symbol  : class SequenceIterator 
location: class GCContent
        SequenceIterator stream = SeqIOTools.readFastaDNA(br);
        ^
biojava/GCContent.java [18:1] cannot resolve symbol
symbol  : variable SeqIOTools 
location: class GCContent
        SequenceIterator stream = SeqIOTools.readFastaDNA(br);
                                  ^
biojava/GCContent.java [23:1] cannot resolve symbol
symbol  : class Sequence 
location: class GCContent
            Sequence seq = stream.nextSequence();
            ^
biojava/GCContent.java [26:1] cannot resolve symbol
symbol  : class Symbol 
location: class GCContent
                Symbol sym = seq.symbolAt(pos);
                ^
biojava/GCContent.java [27:1] cannot resolve symbol
symbol  : variable DNATools 
location: class GCContent
                if (sym == DNATools.g() || sym == DNATools.c())
                           ^
biojava/GCContent.java [27:1] cannot resolve symbol
symbol  : variable DNATools 
location: class GCContent
                if (sym == DNATools.g() || sym == DNATools.c())
                                                  ^
9 errors
Errors compiling GCContent.


I would like to get some help to solve the problem. I am newcomer in java

Reply via email to