ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: java.lang.Win32Process.create error when using jikes (setting bui ld.compiler to jikes) on NT 4.0 machine
Date Wed, 06 Sep 2000 08:17:01 GMT
I have the problem sometimes. The first time was the PATH issue, but I've
gotten it even after fixing that -- just not all the time. It -seems- to
happen only on targets that have both a really long classpath and a really
long list of files to compile -- i.e., a resultant really long
command-line it's passing off to the OS. So my guess is there's
command-line-too-long problem involved, but I haven't had a chance to get
back to diddling around with the build.xml file yet to confirm that
suspicion. The fact that the same target works for you on Solaris would
also suggest that's the problem. You might want to try (on your windows
box) running a jikes target that just compiles one file and see if it
works okay -- then start adding in more files and seeing at what point it
stops working.

Diane

--- Hung Le <hle@comergent.com> wrote:
> 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)


=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

Mime
View raw message