Bruno, You are right. I just came back home and installed a biojava package on my home machine, and the test code indeed works just fine. I do need to re-install the package on my office computer tomorrow.
Thanks a lot. -- Hongyu Zhang Computational biologist Ceres Inc. Quoting Bruno Aranda - Dev <[EMAIL PROTECTED]>: > Welcome then to the Biojava community! > > I think you have a corrupt Biojava library (biojava.jar) or maybe > there > are resources missing in the classpath. What you should do is: > > - Download the latest binary snapshot of Biojava from > http://www.derkholm.net/autobuild/binaries/ > > - Check that you put all the libraries needed in the classpath: > > java -cp /path/to/one/jar:/path/to/another/jar ReadGB input_file > > (also you can have those jars in the CLASSPATH environment > variable. > > You should put the jars explained at > http://biojava.org/download14.html > > After reading the file successfully you will get a Sequence > object... you > can try to just print the sequence name (in this case the accession > number) just using: > > String seqName = seq.getName(); > System.out.println(seqName); > > and there are many other (and sophisticated) possibilities, of > course! > > Good luck, > > Bruno > > > > _______________________________________________ Biojava-l mailing list - [EMAIL PROTECTED] http://biojava.org/mailman/listinfo/biojava-l