
it shows error file does not exist.

The class java.nio.file.Paths is found only in the new version of Java i.e,JDK 7 which is now changed to java.nio.file.Path. Do you have JDK in your netbeans?

thanks
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.