<div>ThanksŁ¬it works nowŁˇ~<br><br></div>
<div class="gmail_quote">2009/6/16 Glynn Clements <span dir="ltr"><<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>></span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im"><br>maven apache wrote:<br><br>> I have consider the space problem,and I try to avoid it:<br>><br>> String filePath=file.getAbsolutePath(); // F:\anzhuang\Tomcat 5.5\....tif<br>> String creatLocation=System.currentTimeMillis()+"location";<br>
> filePath=filePath.replace("\\", "\\\\"); //no matter I add this line or not the filepath is splitted ever<br>> String cmd="g.proj -c georef="+filePath+" location="+creatLocation+" datumtrans=0";<br>
<br></div>You aren't quoting the path. Try:<br>
<div class="im"><br>String cmd="g.proj -c \"georef="+filePath+"\" location="+creatLocation+" datumtrans=0";<br><br></div>--<br>
<div>
<div></div>
<div class="h5">Glynn Clements <<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>><br></div></div></blockquote></div><br>