Trupti,<br><br>Is it possible for your application to search for the command relative to it's working directory? Check if changing the path from "/home/3D...." to a relative path solves the problem..<br><br><div class="gmail_quote">
On Mon, Feb 28, 2011 at 1:46 PM, Trupti Pol <span dir="ltr"><<a href="mailto:ktrup7@gmail.com">ktrup7@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Hi Chaitanya,<br>
<br>
Thanks for the reply .. but we already had gone through the documentation<br>
and realized that the exit code 127 means "command not found" .. but then<br>
their lies the actual problem since it gives this error code only while<br>
running through the java.process() ... and not from shell script..<br>
<div><div></div><div class="h5"><br>
<br>
Chaitanya kumar CH wrote:<br>
><br>
> Trupti,<br>
><br>
> The exit code 127 means "command not found". It's best if you look into<br>
> the<br>
> documentation of process.start() in Linux.<br>
><br>
> On Mon, Feb 28, 2011 at 11:57 AM, Trupti Pol <<a href="mailto:ktrup7@gmail.com">ktrup7@gmail.com</a>> wrote:<br>
><br>
>><br>
>> Hi,<br>
>><br>
>> We have a simple java application which calls gdalwarp.exe from java<br>
>> Process.<br>
>> Following is the command array which we pass while calling<br>
>> process.start();<br>
>><br>
>> commands : [/home/3D/FWTools-2.0.6/bin/gdalwarp, --config, GDAL_CACHEMAX,<br>
>> 1024, -wm, 1024, --debug, OFF, -q, -wt, Int16, -ot, Int16, -srcnodata,<br>
>> -32768, -dstnodata, -9999, -of, GTiff, -r, cubic, -te, 73.998046875,<br>
>> 33.998046875, 75.001953125, 35.001953125, -ts, 512, 512,<br>
>> /home/3D/New/DATA/srtm/e060n40.Bathmetry.tif,<br>
>> /home/3D/New/cache/WMStmp71377.tif]<br>
>><br>
>><br>
>> We are handling the o/p and err streams as required.<br>
>><br>
>> Now the issue is this works absolutely fine when running on windows..<br>
>> but fails on "Red Hat Enterprise Linux Server release 5.4 (Tikanga)" with<br>
>> an<br>
>> exit code of "127". :,(<br>
>><br>
>> another fact is if we call a shell script as<br>
>> "/home/3D/FWTools-2.0.6/bin/gdalwarp $*" then it works fine.<br>
>> command array in this case is<br>
>><br>
>> [sh, /home/3D/FWTools-2.0.6/bin/gdalwarpExecutor.sh, --config,<br>
>> GDAL_CACHEMAX, 1024, -wm, 1024, --debug, OFF, -q, -wt, Int16, -ot, Int16,<br>
>> -srcnodata, -32768, -dstnodata, -9999, -of, GTiff, -r, cubic, -te,<br>
>> 73.998046875, 33.998046875, 75.001953125, 35.001953125, -ts, 512, 512,<br>
>> /home/3D/New/DATA/srtm/e060n40.Bathmetry.tif,<br>
>> /home/3D/New/cache/WMStmp90822.tif]<br>
>><br>
>><br>
>> Your help would be much appreciated.<br>
>> Thanks in advance<br>
>><br>
>> Regards,<br>
>> Trupti<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> -----<br>
>> Thanks & Regards,<br>
>> Trupti Pol<br>
>> --<br>
>> View this message in context:<br>
>> <a href="http://old.nabble.com/Unable-to-execute-GDALWARP.exe-on-64-bit-Linux-through-java.lang.Process-tp31012133p31012133.html" target="_blank">http://old.nabble.com/Unable-to-execute-GDALWARP.exe-on-64-bit-Linux-through-java.lang.Process-tp31012133p31012133.html</a><br>
>> Sent from the FWTools mailing list archive at Nabble.com.<br>
>><br>
>> _______________________________________________<br>
>> FWTools mailing list<br>
>> <a href="mailto:FWTools@lists.maptools.org">FWTools@lists.maptools.org</a><br>
>> <a href="http://lists.maptools.org/mailman/listinfo/fwtools" target="_blank">http://lists.maptools.org/mailman/listinfo/fwtools</a><br>
>> <a href="http://fwtools.maptools.org/" target="_blank">http://fwtools.maptools.org/</a><br>
>><br>
><br>
><br>
><br>
> --<br>
> Best regards,<br>
> Chaitanya kumar CH.<br>
> /tʃaɪθənjə/ /kʊmɑr/<br>
> +91-9494447584<br>
> 17.2416N 80.1426E<br>
><br>
> _______________________________________________<br>
> FWTools mailing list<br>
> <a href="mailto:FWTools@lists.maptools.org">FWTools@lists.maptools.org</a><br>
> <a href="http://lists.maptools.org/mailman/listinfo/fwtools" target="_blank">http://lists.maptools.org/mailman/listinfo/fwtools</a><br>
> <a href="http://fwtools.maptools.org/" target="_blank">http://fwtools.maptools.org/</a><br>
><br>
><br>
<br>
<br>
-----<br>
Thanks & Regards,<br>
Trupti Pol<br>
--<br>
</div></div>View this message in context: <a href="http://old.nabble.com/Unable-to-execute-GDALWARP.exe-on-64-bit-Linux-through-java.lang.Process-tp31012133p31029789.html" target="_blank">http://old.nabble.com/Unable-to-execute-GDALWARP.exe-on-64-bit-Linux-through-java.lang.Process-tp31012133p31029789.html</a><br>
<div><div></div><div class="h5">Sent from the FWTools mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
FWTools mailing list<br>
<a href="mailto:FWTools@lists.maptools.org">FWTools@lists.maptools.org</a><br>
<a href="http://lists.maptools.org/mailman/listinfo/fwtools" target="_blank">http://lists.maptools.org/mailman/listinfo/fwtools</a><br>
<a href="http://fwtools.maptools.org/" target="_blank">http://fwtools.maptools.org/</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>/tʃaɪθənjə/ /kʊmɑr/ <br>+91-9494447584<br>17.2416N 80.1426E<br>