<div>ThanksŁ¬it works nowŁˇ~<br><br></div>
<div class="gmail_quote">2009/6/16 Glynn Clements <span dir="ltr">&lt;<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>&gt;</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>&gt; I have consider the space problem,and I try to avoid it:<br>&gt;<br>&gt; &nbsp; String filePath=file.getAbsolutePath(); &nbsp;// F:\anzhuang\Tomcat 5.5\....tif<br>&gt; &nbsp; String creatLocation=System.currentTimeMillis()+&quot;location&quot;;<br>
&gt; &nbsp; filePath=filePath.replace(&quot;\\&quot;, &quot;\\\\&quot;); //no matter I add this line or not the filepath is splitted ever<br>&gt; &nbsp; String cmd=&quot;g.proj -c georef=&quot;+filePath+&quot; location=&quot;+creatLocation+&quot; datumtrans=0&quot;;<br>
<br></div>You aren&#39;t quoting the path. Try:<br>
<div class="im"><br>String cmd=&quot;g.proj -c \&quot;georef=&quot;+filePath+&quot;\&quot; location=&quot;+creatLocation+&quot; datumtrans=0&quot;;<br><br></div>--<br>
<div>
<div></div>
<div class="h5">Glynn Clements &lt;<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>&gt;<br></div></div></blockquote></div><br>