ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cerbone Vincenzo" <>
Subject ant default interpreter
Date Fri, 21 Nov 2003 17:15:49 GMT
Hi! Does anyone know why ant uses the java interpreter (executable file) inside jre instead
of jdk directory and if is it possible to change it?
I mean, if you set only ANT_HOME and JAVA_HOME (as jdk home) environment, the risult is:
%ANT_HOME%\bin\ant -v -buildfile ..\build.xml
Apache Ant version 1.5.4 compiled on August 12 2003
Buildfile: ..\build.xml
Detected Java version: 1.3 in: C:\bea\jdk131\jre
Detected OS: Windows 2000
I'm having troubles becouse of weblogic.ejbc (ejb compiler class I need to use for weblogic6.1):
it attempts to instanciate a jvm for compiling its code
but it seems that's possible only if executing C:\bea\jdk131\java.exe instead of C:\bea\jdk131\jre\java.exe
(the default used by ant).
The work-around I've found are:
 <exec ...> or <java jvm="${myenv.JAVA_HOME}\bin\java" fork="yes" failonerror="yes">
the problem is that it seems to me both <exec> and <java jvm=...> create a newly
native process...
Any ideas?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message