[Biojava-l] Install question: classpath and use of jar files in compiling TestEmbl.java

Andy Yates ady at sanger.ac.uk
Wed Nov 30 12:15:29 EST 2005


That isn't the the problem and will actually cause more issues. By 
placing the library files in that directory you are exposing only the 
JRE to the libraries. Anyway the issue here is what you are trying to 
compile.

If you javac /homes/trodkey/biojava/demos/seq/TestEmbl.java you are 
telling the compiler that there is a class to compile which is located 
in the package homes.trodkey.biojava.org.biojava.bio. My suggestion is 
change directory to the root of biojava package and try the compilation 
from there.

Also check that your .java file's package declaration shows:

package demos.seq;

Otherwise this will fail again.

Regards,

Andy Yates
~~~~~~~~~~
CancerIT - Cancer Genome Project
Wellcome Trust Sanger Institute

Tamas Horvath wrote:
> the easiest way is to put the jar files to the jdkxxx/jre/lib/extU may have to link them to your jre's same directory (shuld u use differentjre then the jdk's)
> On 11/30/05, Travis Rodkey <trodkey at rice.edu> wrote:>> Hi - I am new to biojava and am trying to get it set up on Red Hat EE 3> running on a PC.   I have java 1.4.2 and jdk1.4.2.0 installed.>> I downloaded the necessary jar files (biojava1.4.jar, bytecode-0.92.jar,> commons-cli.jar, commons-collections-2.1.jar, commons-dbcp-1.1.jar,> commons-pool-1.1.jar) and placed them a /homes/trodkey/biojava directory> as per the "Getting Started" section.>> I then fixed the classpath variable to "setenv CLASSPATH> /homes/trodkey/biojava/biojava-> 1.4.jar:/homes/trodkey/biojava/bytecode-0.92.jar:> /homes/trodkey/biojava/commons-> cli.jar:/homes/trodkey/biojava/commons-collections-2.1.jar:> /homes/trodkey/biojava/commons-> dbcp-1.1.jar:/homes/trodkey/biojava/commons-pool-1.1.jar:."> as per the instructions.>> I then tried to compile TestEmbl.java as suggested in the "Getting> Started" section by using "javac> /homes/trodkey/biojava/demos/seq/TestEmbl.java", and got the error>> "/homes/tr
o!
> dkey/biojava/demos/seq/TestEmbl.java:5: package> homes.trodkey.biojava.org.biojava.bio does not exist", which was the> first of a string of 15 errors.>> Can anyone help me out?>> Thanks!>> -Travis Rodkey>> _______________________________________________> Biojava-l mailing list  -  Biojava-l at biojava.org> http://biojava.org/mailman/listinfo/biojava-l>
> _______________________________________________
> Biojava-l mailing list  -  Biojava-l at biojava.org
> http://biojava.org/mailman/listinfo/biojava-l


More information about the Biojava-l mailing list