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())

Solutions on the web

via Oracle Community by moazamraja, 1 year ago
via GitHub by AELBRK
, 4 months ago
No such file or directory
via GitHub by Ironic8b498
, 9 months ago
No such file or directory
via Google Groups by Derek Messie, 3 months ago
No such file or directory >
via Google Groups by Sandy De Groote, 3 months ago
via Oracle Community by 807596, 1 year ago No such file or directory
at Method)
at com.sun.enterprise.addon.Registry.load(
at com.sun.enterprise.addon.AddonInstaller.installAllAddons(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at com.sun.enterprise.cli.commands.StartDomainCommand.installAddons(
at com.sun.enterprise.cli.commands.StartDomainCommand.startDomain(
at com.sun.enterprise.cli.commands.StartDomainCommand.runCommand(
at com.sun.enterprise.cli.commands.MultiProcessCommand.processLine(
at com.sun.enterprise.cli.commands.MultiProcessCommand.runCommand(
at com.sun.enterprise.cli.framework.CLIMain.invokeCommand(

Users with the same issue

Once, 2 weeks ago
Once, 1 month ago
Once, 1 month ago
4 times, 2 months ago
Once, 2 months ago

Write tip

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