JAVA I/O problem. Please Help
F.Y.I. I am running AIX as root
Right now I have code that takes an compressed tar file from the user. It uncompresses the file and extracts a plain text file from the tar file. My problem comes when I try to read in the file. It tells me the file or directory in the path does not exist. So I created a sample text file and tried to read it, and it read the file with no problem. So I looked at the files ownership and it is owned by the person that created it. So I ran chown from the command line and changed it to root and ran my code again. It worked. So I tried to chown it programmatically us the java exec() and it failed again. But when I run my code on windows it reads the file with no problem. Can anyone help me with this issue or give me some suggestions.
[782 byte] By [
Mjacobsa] at [2007-11-27 7:34:28]

> F.Y.I. I am running AIX as root
>
> Right now I have code that takes an compressed tar
> file from the user. It uncompresses the file and
> extracts a plain text file from the tar file. My
> problem comes when I try to read in the file. It
> tells me the file or directory in the path does not
> exist. So I created a sample text file and tried to
> read it, and it read the file with no problem. So I
> looked at the files ownership and it is owned by the
> person that created it. So I ran chown from the
> command line and changed it to root and ran my code
> again. It worked. So I tried to chown it
> programmatically us the java exec() and it failed
> again. But when I run my code on windows it reads the
> file with no problem. Can anyone help me with this
> issue or give me some suggestions.
I didn't get whether you meant that the chown command failed using exec or reading the file failed after running chown using exec