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

  1. ,

    Use the relative path when providing the location of the file. Place the file in the project folder and access it according to the hierarchy. If you want to access a file outside the project folder, provide the absolute path.

Solutions on the web

via Coderanch by neha gautam, 1 year ago
c:\watri\filesP1k.txt (The system cannot find the file specified)
via Oracle Community by 843810, 1 year ago
hello (The system cannot find the file specified)
via Oracle Community by 807593, 1 year ago
test2.txt (The system cannot find the file specified)
via GitHub by AlexDBlack
, 1 year ago
C:\Users\Alex\cifar\cifar-10-batches-bin\batches.meta.txt (The system cannot find the path specified)
via Oracle Community by 843854, 1 year ago
home.html (The system cannot find the file specified)
via Oracle Community by 843810, 2 years ago
home.html (The system cannot find the file specified)
java.io.FileNotFoundException: c:\watri\filesP1k.txt (The system cannot find the
 file specified)	at java.io.FileInputStream.open(Native Method)	at java.io.FileInputStream.(Unknown Source)	at java.io.FileReader.(Unknown Source)	at ReadFile.getContents(ReadFile.java:18)	at UI_new.actionPerformed(UI_new.java:96)	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)	at javax.swing.JToggleButton$ToggleButtonModel.setPressed(Unknown Source)	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)	at java.awt.Component.processMouseEvent(Unknown Source)	at javax.swing.JComponent.processMouseEvent(Unknown Source)	at java.awt.Component.processEvent(Unknown Source)	at java.awt.Container.processEvent(Unknown Source)	at java.awt.Component.dispatchEventImpl(Unknown Source)	at java.awt.Container.dispatchEventImpl(Unknown Source)	at java.awt.Component.dispatchEvent(Unknown Source)	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)	at java.awt.Container.dispatchEventImpl(Unknown Source)	at java.awt.Window.dispatchEventImpl(Unknown Source)	at java.awt.Component.dispatchEvent(Unknown Source)	at java.awt.EventQueue.dispatchEvent(Unknown Source)	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)	at java.awt.EventDispatchThread.run(Unknown Source)