You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Hung Le <hl...@comergent.com> on 2000/09/05 21:30:13 UTC

java.lang.Win32Process.create error when using jikes (setting bui ld.compiler to jikes) on NT 4.0 machine

Ant: Ant version 1.1 compiled on September 5 2000
Jikes: Version 1.12 8/1/2000
JDK: Classic VM (build JDK-1.2.2-W, native threads, symcjit)
NT: 4.0 with SP6

	When I set build.compiler to jikes, I get the following error:
	at java.lang.Win32Process.create(Native Method)
        at java.lang.Win32Process.<init>(Win32Process.java:64)
        at java.lang.Runtime.execInternal(Native Method)
        at java.lang.Runtime.exec(Runtime.java:272)
        at java.lang.Runtime.exec(Runtime.java:219)
        at org.apache.tools.ant.taskdefs.Jikes.compile(Jikes.java:40)
	...
	(full stack trace is included below)

	The exact same setup (same JDK, build.xml, ant, jikes ...) works OK
on a Solaris box.

	Has anyone seen the above error before?

	Thanks,

	Hung Le --

	
(full stack trace below ...)

debscompile:
  [replace] Replacing @m_CurrentBuild@ --> hle_20000905_1154
    [javac] Compiling 679 source files to
C:\apache\jakarta-tomcat\webapps\Comer
gent\WEB-INF\classes

BUILD FAILED

build.xml:231: Error running Jikes compiler
java.io.IOException: CreateProcess: jikes -Xstdout -d
C:\apache\jakarta-tomcat\w
ebapps\Comergent\WEB-INF\classes -classpath
"C:\apache\jakarta-tomcat\webapps\Co
mergent\WEB-INF\classes;C:\apache\jakarta-tomcat\webapps\Comergent\WEB-INF\l
ib\o
racle.jar;C:\apache\jakarta-tomcat\webapps\Comergent\WEB-INF\lib\crysec111.j
ar;C
:\apache\jakarta-tomcat\webapps\Comergent\WEB-INF\lib\getopt.jar;C:\apache\j
akar
ta-tomcat\webapps\Comergent\WEB-INF\lib\HTTPClient.jar;C:\apache\jakarta-tom
cat\
webapps\Comergent\WEB-INF\lib\xml4j_1_1_9.jar;D:\work\ant\debs\lib\xml4j_2_0
_15.
jar;C:\apache\jakarta-tomcat\webapps\Comergent\WEB-INF\lib\xerces.jar;C:\apa
che\
jakarta-tomcat\webapps\Comergent\WEB-INF\lib\xalan.jar;C:\apache\jakarta-tom
cat\
webapps\Comergent\WEB-INF\lib\lotusxsl.jar;C:\apache\jakarta-tomcat\webapps\
Come
rgent\WEB-INF\lib\mail.jar;C:\apache\jakarta-tomcat\webapps\Comergent\WEB-IN
F\li
b\activation.jar;D:\work\ant\debs\lib\servlet.jar;D:\Program
Files\JavaSoft\Jaxp
1.0.1\jaxp.jar;D:\Program
Files\JavaSoft\Jaxp1.0.1\parser.jar;D:\work\ant\debs;D
:\jd
        at java.lang.Win32Process.create(Native Method)
        at java.lang.Win32Process.<init>(Win32Process.java:64)
        at java.lang.Runtime.execInternal(Native Method)
        at java.lang.Runtime.exec(Runtime.java:272)
        at java.lang.Runtime.exec(Runtime.java:219)
        at org.apache.tools.ant.taskdefs.Jikes.compile(Jikes.java:40)
        at org.apache.tools.ant.taskdefs.Javac.doJikesCompile(Javac.java,
Compil
ed Code)
        at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java, Compiled
Code
)
        at org.apache.tools.ant.Target.execute(Target.java, Compiled Code)
        at org.apache.tools.ant.Project.runTarget(Project.java:717)
        at org.apache.tools.ant.Project.executeTarget(Project.java, Compiled
Cod
e)
        at org.apache.tools.ant.Project.executeTargets(Project.java,
Compiled Co
de)
        at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
        at org.apache.tools.ant.Main.main(Main.java:107)

Re: java.lang.Win32Process.create error when using jikes (setting bui ld.compiler to jikes) on NT 4.0 machine

Posted by Stefan Bodewig <bo...@bost.de>.
It is in fact a problem with some system limits on Windows.

This is supposed to be fixed in CVS. If the number of files to compile is
larger than a certain threshold Ant now writes the filenames into a
temporary file and uses jikes' @ argument.

I'm afraid there is no workaround to this for Ant 1.1 apart from
splitting your <javac> task or not using jikes.

Stefan