AW: [Biojava-l] location of biojava.jar on a linux system
BIBIS, Garnier, Christophe
cgarnier at ttz-Bremerhaven.de
Fri Feb 18 05:57:17 EST 2005
another solution is to create a shell script file with the executable rights
(say application.sh) and write inside something like:
#!/bin/sh
# ---
# run the application
# ---
# --- Global Environment Variables ---
THIS_PATH=`pwd`
CLASSPATH=$THIS_PATH
CLASSPATH=$CLASSPATH:/bio/tools/biojava/biojava.jar
CLASSPATH=$CLASSPATH:/bio/tools/biojava/bytecode-0.92.jar
CLASSPATH=$CLASSPATH:/bio/tools/biojava/jakarta-regexp.jar
CLASSPATH=$CLASSPATH:/bio/tools/biojava/xerces.jar
CLASSPATH=$CLASSPATH:__ANOTHER_JAR_PATH__
CLASSPATH=$CLASSPATH:__ANOTHER_JAR_PATH__
CLASSPATH=$CLASSPATH:__ANOTHER_JAR_PATH__
CLASSPATH=$CLASSPATH:__ANOTHER_JAR_PATH__
CLASSPATH=$CLASSPATH:__ANOTHER_JAR_PATH__
export CLASSPATH
PARA="-Xmx758M"
java $PARA __THE_CLASS_TO_CALL__
Replace the corresponding paths to your biojava distribution and the
__ANOTHER_JAR_PATH__ as needed
By the way, the JAVA platforms Eclipse or Netbeans work very fine and take
care about such details.
christophe
-----Ursprüngliche Nachricht-----
Von: James Kwong [mailto:jwk18 at csufresno.edu]
Gesendet: Freitag, 18. Februar 2005 11:21
An: biojava-l at biojava.org
Betreff: Re: [Biojava-l] location of biojava.jar on a linux system
y0 facemann,
On my linux box, this is what I did to my .bash_profile and added these
lines in my home acct:
export CLASSPATH=.;
export
CLASSPATH=$CLASSPATH:/home/james/biojava/biojava-live/ant-build/biojava.jar
This way, you won't have to type all the parameters each time you want
to execute your java app.
--
____________________________________________________________________________
____
James Kwong
"Give a man a fish and you feed him for a day. Teach him how to fish and you
feed him for a lifetime."
- Lao Tzu
_______________________________________________
Biojava-l mailing list - Biojava-l at biojava.org
http://biojava.org/mailman/listinfo/biojava-l
More information about the Biojava-l
mailing list