From: Timothy W. <tw...@us...> - 2007-11-16 19:58:57
|
On Nov 16, 2007, at 12:21 PM, Suzanne Scheitle wrote: > I'm trying to evaluate Abbot/Costello but am having classpath > issues for > my 3rd party libraries when I try to launch my app with Costello. > > Here's my script (I replaced my app name with a generic one for > clarity): > > <?xml version="1.0" encoding="UTF-8"?> > <AWTTestScript> > <launch class="com.AppToTest.ui.AppToTestWindow" > classpath="c:/program files/AppToTest/lib/AppToTest.jar, c:/program > files/AppToTest/lib/hsqldb.jar, c:/program > files/AppToTest/lib/ekoshare.jar, c:/program > files/AppToTest/lib/pdflib.jar, c:/program > files/AppToTest/lib/jini-core.jar, c:/program > files/AppToTest/lib/jini-ext.jar, c:/program > files/AppToTest/lib/xerces.jar, c:/program > files/AppToTest/lib/log4j.jar, c:/program > files/AppToTest/lib/newext/jspComm.jar, c:/program > files/AppToTest/lib/newext/spring-1.2.8.jar > method="main" > args="[-Deko.DESede.key.path=keystore/eko_DESede.key,- > Dcom.AppToTest.conf=etc/AppToTest.windows.conf,- > Dcom.AppToTest.embedded.fp.flushOn=true,-Djava.security.policy=etc/ > policy.all,-Dversion=4,-Djava.endorsed.dirs=lib/newext/endorsed]" > /> > <terminate /> > </AWTTestScript> > > c:/program files/AppToTest/lib/AppToTest.jar is the jar containing my > launch class, and the remaining jars are dependencies. I actually > have > a whole lot more, just edited them out here for readability. > > This is how I"m running and what I see: > 1. I am running from the abbot directory (in my case, > C:\abbot-1.0.0.rc5), using the command line: > java -jar lib/abbot.jar charting.xml on windows, a classpath looks like "path1;path2;path3"; the path separator is a semicolon, not a comma. If you use the classpath editor within costello, you should see one entry per line. if you intend all of the -Dname=value options to be passed to the VM, then you need to pass them when you launch the VM, and not pass them to your program as arguments. Timothy Wall http://abbot.sf.net |