java.io.IOException: No such file or directory

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

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

via Google Groups by Ezequie...@gmail.com (JIRA), 1 year ago
No such file or directory<br /> <span class="error">[ssh-agent]</span>
via Stack Overflow by jonathan
, 3 weeks ago
via netbeans.org by Unknown author, 2 years ago
via netbeans.org by Unknown author, 1 year ago
via igniterealtime.org by Unknown author, 2 years ago
via netbeans.org by Unknown author, 1 year ago
java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:1012)
at net.alpenblock.bungeeperms.Debug.log(Debug.java:98)
at net.alpenblock.bungeeperms.Mysql.connect(Mysql.java:44)
at net.alpenblock.bungeeperms.io.MySQL2BackEnd.(MySQL2BackEnd.java:44)
at net.alpenblock.bungeeperms.PermissionsManager.loadConfig(PermissionsManager.java:85)
at net.alpenblock.bungeeperms.PermissionsManager.(PermissionsManager.java:62)
at net.alpenblock.bungeeperms.BungeePerms.(BungeePerms.java:56)
at net.alpenblock.bungeeperms.platform.bungee.BungeePlugin.onLoad(BungeePlugin.java:63)
at net.md_5.bungee.api.plugin.PluginManager.enablePlugin(PluginManager.java:309)
at net.md_5.bungee.api.plugin.PluginManager.loadPlugins(PluginManager.java:212)
at net.md_5.bungee.BungeeCord.start(BungeeCord.java:263)
at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:55)
at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15)

Users with the same issue

Once, 1 week ago
Once, 3 weeks ago
4 times, 1 month ago
Once, 1 month ago
Once, 3 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.