Recommended solutions based on your search
If the directory ../.foo/bar/ doesn't exist, you can't create a file there, so make sure you create the directory first.
File f = new File("somedirname1/somedirname2/somefilename"); if (!f.getParentFile().exists()) f.getParentFile().mkdirs();
Solutions on the web
Be the first to provide a solution to this exception. Write a tip to help other users and build your expert profile.