Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. Main.main() has thrown a FileNotFoundException
    Java Runtime
    5
    5
    10
  2. Unable to open file, file not found in the path provided
    Java Runtime
    696
    531
    393

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.io.FileNotFoundException: test.mf (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:120)
    at java.io.FileInputStream.<init>(FileInputStream.java:79)
    at sun.tools.jar.Main.run(Main.java:150)
1 frame hidden

Solution

chinthana10 months ago

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.

External results for this pattern (10)

  1. ..\tmp\ar-train.txt (系统找不到指定的路径。)
    Show stack trace
  2. kashbanvia GitHub2 days ago
    /sys/devices/system/cpu/cpu4/cpufreq/scaling_cur_freq (No such file or directory)
    Show stack trace
  3. mpfauvia GitHub3 days ago
    /storage/emulated/0/textfee/pdfs/1.pdf (Permission denied)
    Show stack trace
  4. FlorianLeitgebvia GitHub5 days ago
    /opt/alfresco/alf_data/keystore/ssl.keystore (No such file or directory)
    Show stack trace
  5. 807589via Oracle Community6 days ago
    C:\Program Files\Spark\.install4j\files.log (The system cannot find the file specified)
    Show stack trace
  6. zhangfenghuavia Google Groups1 week ago
    target/appId.txt (No such file or directory)
    Show stack trace
  7. Dawid Loubservia Google Groups1 week ago
    /Users/dreedy/.m2/settings.xml (No such file or directory)
    Show stack trace
  8. Alan Carwilevia Google Groups1 week ago
    java.io.FileNotFoundException: /usr/share/ software.jessies.org/evergreen/Resources/evergreen/lib/data/tools/10.sort.tool.dpkg-tmp(No such file or directory)
    Show stack trace
  9. Lining Sunvia Google Groups1 week ago
    target/appId.txt (No such file or directory)
    Show stack trace
  10. NiRmAl KuMaRvia Google Groups1 week ago
    target/appId.txt (No such file or directory)
    Show stack trace