java.io.FileNotFoundException: \src\product.txt (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

,

Make sure the file resides in the project folder if you're referencing it via a relative path. If not, use the absolute path to the file with the file extension.

Solutions on the web

via Stack Overflow by ShaunK
, 1 year ago
via lenya-user by Nick Holland, 1 year ago
/home/nick/src/apache-lenya-2.0.4/src/modules/prettyprinting/xslt/xml2nicexml.xsl (No such file or directory)
via Netbeans Bugzilla by tboudreau, 1 year ago
/space/nb_another/contrib/ options/baseoptions/src/org/netbeans/modules/baseoptions/ ProxySettingsPanel.java (No such file or directory)
via GitHub by pcn
, 2 years ago
/etc/awscredential.properties (No such file or directory)
via nabble.com by Unknown author, 1 year ago
/root/.keystore (No such file or > directory)
via GitHub by josephks
, 2 years ago
/<snip>/.#props.sbt (No such file or directory)
java.io.FileNotFoundException: \src\product.txt (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:120)
at dao.Inventory.readFile(Inventory.java:30)
at view.InventoryView.init(InventoryView.java:33)
at view.InventoryView.(InventoryView.java:21)
at view.InventoryView.main(InventoryView.java:211)

Users with the same issue

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

Write tip

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