[Biojava-l] Genbank Problem
cantey.lg@pg.com
cantey.lg@pg.com
Thu, 21 Feb 2002 10:29:46 -0500
Using the code below:
File genbankFile = new File(args[0]);
BufferedReader gReader = new BufferedReader(
new InputStreamReader(new FileInputStream(genbankFile)));
SequenceIterator sI = SeqIOTools.readGenbank(gReader);
while(sI.hasNext())
{
Sequence seq = sI.nextSequence();
System.out.println(seq.getName() + " has " + seq.countFeatures() + " features");
printFeatures(seq, System.out, "");
}
------------------------------------------------
I encountered the error below:
-----------------------------------------------
javax.xml.parsers.FactoryConfigurationError: java.lang.ClassNotFoundException: org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:118)
at org.biojava.bio.symbol.AlphabetManager.<clinit>(AlphabetManager.java:697)
at org.biojava.bio.seq.DNATools.<clinit>(DNATools.java:50)
rethrown as org.biojava.bio.BioError: Unable to initialize DNATools
at org.biojava.bio.seq.DNATools.<clinit>(DNATools.java:83)
at org.biojava.bio.seq.io.SeqIOTools.readGenbank(SeqIOTools.java:102)
at seq.UpdatedTestGenbank.main(UpdatedTestGenbank.java, Compiled Code)
The xerces.jar file was in the CLASSPATH....
Any ideas ???
Thanks for any help !!!
Larry Cantey