ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Miten Mehta" <>
Subject Re: java task strangeness...
Date Tue, 08 Aug 2000 18:39:31 GMT

did you try to set basedir to absolute path and use fork attribute for java 

>From: David Weller <>
>Subject: java task strangeness...
>Date: Tue, 8 Aug 2000 10:53:48 -0700 (PDT)
>(By now, I'll bet Stefan has me lumped into the "Annoying Ant Newbie" 
>Well, here's my next request for help....
>I have a build file that simply invokes the java task:
><project name="subject" default="ejb_gen" basedir=".">
>   <target name="ejb_gen">
>     <echo message="    Generating Enterprise Java code ..."/>
>     <java classname="tools.BeanBuilder" args="subject.def"
>       classpath="c:/ant_test/tools/xml.jar;c:/ant_test/tools" />
>   </target>
>Unfortunately, it raises a nasty/strange exception (fyi, I'm now using the 
>build from this morning)(Also, I've trimmed the exception stack, I'll 
>the full one if it's needed):
>C:\ant_test\com\teachscape\common\subject>ant ejb_gen
>Buildfile: build.xml
>     Generating Enterprise Java code in directory
> error in opening zip file
>         at Method)
>         at<init>(
>         at<init>(
>         at
>java, Compiled Code)
>         at, Compiled Code)
>         at
>         at, 
>         at, 
>         at, Compiled Code)
>         at
>build.xml:18: Could not find tools.BeanBuilder. Make sure you have it in 
>Total time: 0 seconds
>Oddly, what I _think_ is the same command from the command line works 
>C:\ant_test\com\common\subject>java -classpath
>c:/ant_test/tools/xml.jar;c:/ant_test tools.BeanBuilder subject.def
>Is this really a classpath problem in my buildfile, or am I 
>Do You Yahoo!?
>Kick off your party with Yahoo! Invites.

Get Your Private, Free E-mail from MSN Hotmail at

View raw message