From: Andreas M. <ma...@in...> - 2004-05-26 12:42:35
|
Hi there, Having installed joelib as a binary in /some/directory/joelib , how can I use it if my own JAVA-Program resides in /some/other/directory/myprog , i.e. is it possible to use the import statement for bibs which don't reside in a subdir of my developer dir? I know this is merely a JAVA-Question and I should pose it to SUN, but perhaps you have a quick answer at hand... Greets, Andreas |
From: Joerg K. W. <we...@in...> - 2004-05-26 12:47:18
|
Hi Andreas, depends on your set up: 1. append all required *.jar files to the CLASSPATH environment (not recommended) 2. use ant and catch all *.jar files to build a 'local' classpath for your program 3. use shell/batch script to build a 'local' classpath for your program (you can use one of JOELib's as base). But under windows this is not a good solution, because all dependencies are hard-coded. So i recommend ant or shell-scripts using cygwin. Kind regards, Joerg > Hi there, > > Having installed joelib as a binary in /some/directory/joelib , how can > I use it if my own JAVA-Program resides in /some/other/directory/myprog > , i.e. is it possible to use the import statement for bibs which don't > reside in a subdir of my developer dir? > I know this is merely a JAVA-Question and I should pose it to SUN, but > perhaps you have a quick answer at hand... > Greets, > > Andreas > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Joelib-help mailing list > Joe...@li... > https://lists.sourceforge.net/lists/listinfo/joelib-help > -- Dipl. Chem. Joerg K. Wegner Center of Bioinformatics Tuebingen (ZBIT) Department of Computer Architecture Univ. Tuebingen, Sand 1, D-72076 Tuebingen, Germany Phone: (+49/0) 7071 29 78970 Fax: (+49/0) 7071 29 5091 E-Mail: mailto:we...@in... WWW: http://www-ra.informatik.uni-tuebingen.de -- Never mistake motion for action. (E. Hemingway) Never mistake action for meaningful action. (Hugo Kubinyi,2004) |
From: Andreas M. <ma...@in...> - 2004-05-26 14:35:04
|
Hi Joerg, On Wed, May 26, 2004 at 02:49:42PM +0200, Joerg K. Wegner wrote: > 1. append all required *.jar files to the CLASSPATH environment (not > recommended) Not knowing the setup of potential users I could only do this on my own system. => I won't do it. > 2. use ant and catch all *.jar files to build a 'local' classpath for > your program sounds good. Does this mean to create an .xml file having a target that launches my .class file provided with the information where it can find the bib? Can I do this with something like: ... <classpath> <fileset dir="${lib}"> <include name="**/*.jar" /> </fileset> </classpath> ... Of course, additionally I would have to search the joelib-tree recursively to catch all jars. Do you know a good knowledge resource on the web about ant? > 3. use shell/batch script to build a 'local' classpath for your program > (you can use one of JOELib's as base). But under windows this is not a > good solution, because all dependencies are hard-coded. > So i recommend ant or shell-scripts using cygwin. Don't know exactly what this means. What do you mean by "'local' classpath"? You don't speak of the environment variable $CLASSPATH, do you? Greets, Andreas |
From: Joerg K. W. <we...@in...> - 2004-05-26 15:03:56
|
Hi, > sounds good. Does this mean to create an .xml file having a target that launches my .class file > provided with the information where it can find the bib? > Can I do this with something like: > ... > <classpath> > <fileset dir="${lib}"> > <include name="**/*.jar" /> > </fileset> > </classpath> > ... YES. I've no preferred tutorial. Have a look at the apache ant homepage and at already available ant files and remove all functionality you do not need. > Don't know exactly what this means. What do you mean by "'local' classpath"? > You don't speak of the environment variable $CLASSPATH, do you? I mean scripting and creating a backup variable, see e.g. joelib/build.sh Kind regards, Joerg -- Dipl. Chem. Joerg K. Wegner Center of Bioinformatics Tuebingen (ZBIT) Department of Computer Architecture Univ. Tuebingen, Sand 1, D-72076 Tuebingen, Germany Phone: (+49/0) 7071 29 78970 Fax: (+49/0) 7071 29 5091 E-Mail: mailto:we...@in... WWW: http://www-ra.informatik.uni-tuebingen.de -- Never mistake motion for action. (E. Hemingway) Never mistake action for meaningful action. (Hugo Kubinyi,2004) |