ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Garcia <>
Subject Using ant for EJB jar creation
Date Tue, 14 Nov 2000 16:28:17 GMT
Hi fellow Developers,
Ant is really great but, I am having some problems while trying
to build an EJB.  I have to invoke the java command on a vendor
specific EJB compiler in order to generate a deployable jar
file.  Here is what I am doing in the target name="compile" tag:

    <java classname="${ejbc}" fork="yes" jvmargs="${std_jar}
      <classpath path="${classpath}"/>

where <<ejbc>> is the vendor's ejb compiler class with the input
jar <<std_jar>> and output jar <<wl_jar>> as the 1st and 2nd
args.  The two jar file properties are just paths to the
particular jar file.  

When I try to run ant I get the following:

    [javac] Compiling 4 source files to
      [jar] Building jar:
     [java] java.lang.NoClassDefFoundError:
     [java] Exception in thread "main"
     [java] Result: 1

No matter what I try I seem to get the same error.  The forked
process will not recognize the path to my jar files.  The reason
I want to use a fork is because I create some temporary
directories for the build then, delete them after the build is
complete.  My <target name="deploy" depends="compile"> and it
never gets to this step because of the

Any advice would be much appreciated?


Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!

View raw message