Hello Buddies, I am trying to call a C code from a java GUI (use rt.exec)in a jar. The C code was compiled in the Cygwin (a linux-like envrionment for PC). The C executable runs fine in Cygwin and DOS command line, but if I run it through java GUI (launched from DOS), the final results are incorrect (no error reporting at executing), for example, taking an image file as input, the output image file (after some processing) will have extremely large or small values at all points except those of having value "0" (I mean: the correct outputs from command line and incorrect outputs from Java GUI have same value ("0") at all "0" output points). The Java GUI is just an interface used to generate a parameter file for the C code as an input parameter file, if I want to run the C code in command line, I will run the java GUI first, generate and save the parameter file (after manual inputs) for command line run use. I mean there is no any difference for the inputs between java GUI and command line run. It looks somewhat like a little/big_endian issue, but really got no clue of this problem. I use java 1.5.0_09. Any help is greatly appreciated.