J
Jason Cavett
I'm trying to extract a ZIP file to a temporary directory
(System.getProperty("java.io.tmpdir")) and I keep getting the
following exception when I get to this line:
FileOutputStream fos = new FileOutputStream(TEMP_DIR +
entry.getName());
The exception is:
java.io.FileNotFoundException: C:\data\myusername\Desktop\zipped.txt
(The system cannot find the path specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
at hasrd.gui.skin.ThemeLoader.loadTheme(ThemeLoader.java:82)
at hasrd.gui.skin.ThemeLoader.loadTheme(ThemeLoader.java:57)
at hasrd.TestZipInput.main(TestZipInput.java:11)
Can a FileOutputStream create a directory if it does not already
exist? Is there something else I'm doing wrong?
Thanks
(System.getProperty("java.io.tmpdir")) and I keep getting the
following exception when I get to this line:
FileOutputStream fos = new FileOutputStream(TEMP_DIR +
entry.getName());
The exception is:
java.io.FileNotFoundException: C:\data\myusername\Desktop\zipped.txt
(The system cannot find the path specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
at hasrd.gui.skin.ThemeLoader.loadTheme(ThemeLoader.java:82)
at hasrd.gui.skin.ThemeLoader.loadTheme(ThemeLoader.java:57)
at hasrd.TestZipInput.main(TestZipInput.java:11)
Can a FileOutputStream create a directory if it does not already
exist? Is there something else I'm doing wrong?
Thanks