Hi
I used the mechanism explained below to compile the EJBs with Jikes. However
I encounter a problem if I compile it with the classic javac compiler. The
exception that gets thrown is listed below:
[ejbc] java.io.IOException: CreateProcess: classic -classpath
d:\jdk1.2.2\jre\lib\rt.jar;{goes on to list the entire classpath}
[ejbc] at java.lang.Win32Process.create(Native Method)
[ejbc] at java.lang.Win32Process.<init>(Win32Process.java:64)
[ejbc] at java.lang.Runtime.execInternal(Native Method)
[ejbc] at java.lang.Runtime.exec(Runtime.java:274)
[ejbc] at java.lang.Runtime.exec(Runtime.java:218)
[ejbc] at weblogic.utils.Executable.exec(Executable.java, Compiled
Code)
[ejbc] at weblogic.utils.Executable.exec(Executable.java:88)
[ejbc] at
weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.jav
a, Compiled Code)
[ejbc] at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:220)
[ejbc] at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:211)
[ejbc] at
weblogic.ejb.ejbc.EJBCompiler.compileEJB(EJBCompiler.java, Compiled Code)
[ejbc] at weblogic.ejbc.runBody(ejbc.java, Compiled Code)
[ejbc] at weblogic.utils.compiler.Tool.run(Tool.java:80)
[ejbc] at weblogic.ejbc.main(ejbc.java:353)
[ejbc] Exec failed .. exiting
[ejbc] Java Result: 1
What is the way out in this situation?
Rgds
Kapil
-----Original Message-----
From: Niels Verdonk [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 25, 2001 1:14 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Jikes and ANT's optional ejbc task (was: external compiler
ta sk)
Hi,
Using jikes we managed to bring our full buildtime down from 75mins to
9mins!!!!
After that we started to use the depend task to do an incremental build
which
sped up development even more:
> I have a question related to this: we're already using jikes
> to do the bulk
> of our Java compilations in ANT builds, but now we want to make ejbc,
> Weblogic's EJB compiler, use jikes as well...
<ejbjar srcdir="build" descriptordir="${src}" destdir="${build.dest}"
flatdestdir="true">
<weblogic args="-nowarn" compiler="${build.compiler}"
destdir="${build.dest}" classpath="${classpath.ejbc}"/>
<include name="**/*-ejb-jar.xml"/>
<exclude name="**/*weblogic*.xml"/>
</ejbjar>
Go for it,
Niels