Refreshing directory
843789May 20 2010 — edited May 21 2010I'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.