[FWTools] Unable to execute GDALWARP.exe on 64 bit Linux through java.lang.Process

Trupti Pol ktrup7 at gmail.com
Mon Feb 28 03:16:26 EST 2011


Hi Chaitanya,

Thanks for the reply .. but we already had gone through the documentation
and realized that the exit code 127 means "command not found" .. but then
their lies the actual problem since it gives this error code only while
running through the java.process() ... and not from shell script..


Chaitanya kumar CH wrote:
> 
> Trupti,
> 
> The exit code 127 means "command not found". It's best if you look into
> the
> documentation of process.start() in Linux.
> 
> On Mon, Feb 28, 2011 at 11:57 AM, Trupti Pol <ktrup7 at gmail.com> wrote:
> 
>>
>> Hi,
>>
>> We have a simple java application which calls gdalwarp.exe from java
>> Process.
>> Following is the command array which we pass while calling
>> process.start();
>>
>> commands : [/home/3D/FWTools-2.0.6/bin/gdalwarp, --config, GDAL_CACHEMAX,
>> 1024, -wm, 1024, --debug, OFF, -q, -wt, Int16, -ot, Int16, -srcnodata,
>> -32768, -dstnodata, -9999, -of, GTiff, -r, cubic, -te, 73.998046875,
>> 33.998046875, 75.001953125, 35.001953125, -ts, 512, 512,
>> /home/3D/New/DATA/srtm/e060n40.Bathmetry.tif,
>> /home/3D/New/cache/WMStmp71377.tif]
>>
>>
>> We are handling the o/p and err streams as required.
>>
>> Now the issue is this works absolutely fine when running on windows..
>> but fails on "Red Hat Enterprise Linux Server release 5.4 (Tikanga)" with
>> an
>> exit code of "127". :,(
>>
>> another fact is if we call a shell script as
>> "/home/3D/FWTools-2.0.6/bin/gdalwarp $*" then it works fine.
>> command array in this case is
>>
>> [sh, /home/3D/FWTools-2.0.6/bin/gdalwarpExecutor.sh, --config,
>> GDAL_CACHEMAX, 1024, -wm, 1024, --debug, OFF, -q, -wt, Int16, -ot, Int16,
>> -srcnodata, -32768, -dstnodata, -9999, -of, GTiff, -r, cubic, -te,
>> 73.998046875, 33.998046875, 75.001953125, 35.001953125, -ts, 512, 512,
>> /home/3D/New/DATA/srtm/e060n40.Bathmetry.tif,
>> /home/3D/New/cache/WMStmp90822.tif]
>>
>>
>> Your help would be much appreciated.
>> Thanks in advance
>>
>> Regards,
>> Trupti
>>
>>
>>
>>
>>
>>
>> -----
>> Thanks & Regards,
>> Trupti Pol
>> --
>> View this message in context:
>> http://old.nabble.com/Unable-to-execute-GDALWARP.exe-on-64-bit-Linux-through-java.lang.Process-tp31012133p31012133.html
>> Sent from the FWTools mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> FWTools mailing list
>> FWTools at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/fwtools
>> http://fwtools.maptools.org/
>>
> 
> 
> 
> -- 
> Best regards,
> Chaitanya kumar CH.
> /tʃaɪθənjə/ /kʊmɑr/
> +91-9494447584
> 17.2416N 80.1426E
> 
> _______________________________________________
> FWTools mailing list
> FWTools at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/fwtools
> http://fwtools.maptools.org/
> 
> 


-----
Thanks & Regards,
Trupti Pol
-- 
View this message in context: http://old.nabble.com/Unable-to-execute-GDALWARP.exe-on-64-bit-Linux-through-java.lang.Process-tp31012133p31029789.html
Sent from the FWTools mailing list archive at Nabble.com.



More information about the FWTools mailing list