'I am having this error when run a jar file Exception in thread "main" java.lang.NoClassDefFoundError: java/nio/file/NoSuchF ileException

When trying to run the jar file using java 1.6 I get this error: Exception in thread "main" java.lang.NoClassDefFoundError: java/nio/file/NoSuchF ileException.

But when I run using 1.8, It runs without problem.

Does someone knows what's may be happening?



Solution 1:[1]

NoSuchFileException means specified file is not added in the jar.

  1. Just Refresh Or Check out the folder structure.
  2. Recreate the jar for same.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Pavan Kumar R