Sounds like you might have done this:

        set CLASSPATH=/path/to/biojava.jar
        javac myprogram.java
        java myprogram

What you need to do is this:

        set CLASSPATH=/path/to/biojava.jar
        javac -cp $CLASSPATH myprogram.java     
        java -cp $CLASSPATH myprogram

Also, check that your classpath only contains one reference to the jar
file, not two or more, as having multiple references to copies in
different locations has the same effect as not including it at all.

cheers,
Richard

Richard Holland
Bioinformatics Specialist
GIS extension 8199
---------------------------------------------
This email is confidential and may be privileged. If you are not the
intended recipient, please delete it and notify us immediately. Please
do not copy or use it for any purpose, or disclose its content to any
other person. Thank you.
---------------------------------------------


> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Maxime Caron
> Sent: Thursday, September 22, 2005 11:24 AM
> To: biojava-l@biojava.org
> Subject: [Biojava-l] classpath
> 
> 
> Hi, 
> 
> I'm sorry if this has been asked before. I added the .jar 
> files to my $CLASSPATH
> under linux and I still can't compile my code; it doesn't 
> find the classes. The
> path syntax is correct and the files are properly downloaded.
> 
> Any ideas?
> 
> Thank you.
> 
> 
> _______________________________________________
> Biojava-l mailing list  -  Biojava-l@biojava.org
> http://biojava.org/mailman/listinfo/biojava-l
> 

_______________________________________________
Biojava-l mailing list  -  Biojava-l@biojava.org
http://biojava.org/mailman/listinfo/biojava-l

Reply via email to