Home >Java >Javagetting Started >Java system prompts that the specified file cannot be found
Error:
java.io.FileNotFoundException: G:\HibernateWorkspace\codedog\out\artifacts\codedog_war_exploded\uploadFiles\logo1.png
Reason:
In fact, this requires G:\HibernateWorkspace\codedog\out\artifacts\codedog_war_exploded
There is an uploadFiles
folder below, however When the intellij idea editor is in use, it will not deploy the empty folders in the web directory for you.
Solution:
1. Manually create an uploadFiles folder in G:\HibernateWorkspace\codedog\out\artifacts\codedog_war_exploded\
;
2. Create a file under web and add an arbitrary file.
Recommended tutorial: java quick start
The above is the detailed content of Java system prompts that the specified file cannot be found. For more information, please follow other related articles on the PHP Chinese website!