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/06 21:45:42 UTC

with Jikes on WindowsNT; problem if classpath contains white spac es

	Thanks to Stefan Bodewig [mailto:bodewig@bost.de], I was able to get
over
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
	# 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
Jikes.java 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 [mailto:bodewig@bost.de]
> Sent: Wednesday, September 06, 2000 1:24 AM
> To: ant-user@jakarta.apache.org
> 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
>