ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hung Le <>
Subject with Jikes on WindowsNT; problem if classpath contains white spac es
Date Wed, 06 Sep 2000 19:45:42 GMT
	Thanks to Stefan Bodewig [], I was able to get
the java.lang.Win32Process.create problem on WindowsNT but I am still not
able to
get jikes to work with Ant on WindowsNT. The current problem is due 
white spaces in classpath. 

	On my machine the 1.2.2 JRE is installed in 
C:\Program Files\JavaSoft\JRE\1.2

	Ant detected that and added "C:\Program
Files\JavaSoft\JRE\1.2\lib\rt.jar" to
the classpath given to jikes. For example:
 jikes -classpath .;mylib/a.jar;C:\Program Files\JavaSoft\JRE\1.2\lib\rt.jar
	# D:\jikes123456789 contains the list of *.java file to be compiled

	The problem is that jikes will treat C:\Program as part of the
classpath and 
Files\JavaSoft\JRE\1.2\lib\rt.jar as the next argument. I've tried to modify to add
a double-quote to the start and at the end of the classpath value. That does
not seem to help.

	Anyone has some insight into this problem? Is that an Ant problem
(passing the wrong value
to -classpath), a JDK problem (Runtime.getRuntime().exec() does the wrong
thing)? or Jikes problem?

	I suppose I can re-install the JRE into a "non-white-spaces"
directory but that will
be hard to do if I need to roll this out to the rest of my team.

> -----Original Message-----
> From: Stefan Bodewig []
> Sent: Wednesday, September 06, 2000 1:24 AM
> To:
> Subject: Re: java.lang.Win32Process.create error when using jikes
> (setting bui ld.compiler to jikes) on NT 4.0 machine
> 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

View raw message