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]
# 1

> 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

r035198xa at 2007-7-12 19:14:57 > top of Java-index,Java Essentials,Java Programming...
# 2
Both of them failed
Mjacobsa at 2007-7-12 19:14:57 > top of Java-index,Java Essentials,Java Programming...
# 3
You can't use the exec in Java to chown the un-tarred file, or the file you created manually on disk?
abillconsla at 2007-7-12 19:14:57 > top of Java-index,Java Essentials,Java Programming...
# 4
The file i created on the disk which was extracted from the tar file
Mjacobsa at 2007-7-12 19:14:57 > top of Java-index,Java Essentials,Java Programming...
# 5
I am refering to this: "So I created a sample text file and tried to read it, and it read the file with no problem."You were able to prgrammatically chown this one?
abillconsla at 2007-7-12 19:14:57 > top of Java-index,Java Essentials,Java Programming...