A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Joined: Nov 10, 2004
Jun 14, 2005 09:06:00
i am using Runtime.getRuntime().exec to unzip files on linux server, but after running it, some times i get list of filenames by File.list() and some times i dont, can any one tell me why?
Joined: Jan 29, 2003
Jun 14, 2005 09:25:00
Mostly guessing here ...
Are you reading the outputs of the zip program? If not, there may be messages there that you are missing.
Any chance the zip contains paths and is putting the files somewhere you don't expect?
Have you looked into the Zip streams? You can read the zip file to extract the members and write them anywhere you like. Can't say if that would be a good idea or not.
Let me know if any of that helps.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Don't get me started about those stupid
how to call .exe file by clicking the JButton..?
Launching Internet Explorer from a Java App
Runtime.getRuntime().exec() fails intermittently.
Running OS Specific commands in Java
Where is the InputStream stored...?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014