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
    530
    393

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.io.FileNotFoundException: MyApp.jar (The system cannot find the file specif ied)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at java.io.FileInputStream.<init>(FileInputStream.java:66)
    at sun.tools.jar.Main.run(Main.java:131)
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. Dawid Loubservia Google Groups6 days ago
    /Users/dreedy/.m2/settings.xml (No such file or directory)
    Show stack trace
  2. Alan Carwilevia Google Groups6 days 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
  3. Lining Sunvia Google Groups6 days ago
    target/appId.txt (No such file or directory)
    Show stack trace
  4. NiRmAl KuMaRvia Google Groups6 days ago
    target/appId.txt (No such file or directory)
    Show stack trace
  5. James Sirotavia Google Groups6 days ago
    target/appId.txt (No such file or directory)
    Show stack trace
  6. Tyler Millsvia Google Groups6 days ago
    ..\..\js\..\js-plugins \Banner.js (The system cannot find the path specified)
    Show stack trace
  7. junevia Google Groups1 week ago
    D:\hello-integration-testing \com.springsource.test.apps.osgi.hello.service.im l\junitvmwatcher2055215288.properties (系统找不到指定的文件。)
    Show stack trace
  8. Abel Muiño Vizcainovia Google Groups1 week ago
    /home/gilberto/.m2indexcache/ > http___repo1_maven_org_maven2__index_nexus_maven_repository_index_zip. > zip > (No such file or directory)
    Show stack trace
  9. Miles Tillingervia SonarSource JIRA1 week ago
    Fail to load file: /${WORKSPACE}/sonar-project.properties
    Show stack trace
  10. Tomasz Zieleniewskivia SonarSource JIRA1 week ago