Home  >  Article  >  Java  >  Java system prompts that the specified file cannot be found

Java system prompts that the specified file cannot be found

王林
王林Original
2019-11-22 15:57:053179browse

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_explodedThere 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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn