Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Refreshing directory

843789May 20 2010 — edited May 21 2010
I'm writing a program inside Eclipse IDE and during the program, I write a file inside eclipse directory and then I use the file in order to manipulate its contents but I get java.lang.ClassNotFoundException because the directory hasn't been refresh yet, in order to find the specified file. Is there a way to refresh the eclipse directory from inside my java code??
I tried TimeUnit to give some seconds in order to refresh the directory manually but I want to it automatically.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 18 2010
Added on May 20 2010
7 comments
901 views