[Biojava-l] classpath

Richard HOLLAND hollandr at gis.a-star.edu.sg
Thu Sep 22 01:24:56 EDT 2005


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: biojava-l-bounces at portal.open-bio.org 
> [mailto:biojava-l-bounces at portal.open-bio.org] On Behalf Of 
> Maxime Caron
> Sent: Thursday, September 22, 2005 11:24 AM
> To: biojava-l at 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 at biojava.org
> http://biojava.org/mailman/listinfo/biojava-l
> 



More information about the Biojava-l mailing list