I am trying to implement JNotify. but I get a little strange error messages when I compiled the program. I get sample code from this site ttp: //jnotify.sourceforge.net/sample.html
as information, JNotify is used to monitor directories, and this is what my source code looks like.
this is the contents of the watch.java class
import net.contentobjects.jnotify.JNotifyListener; import net.contentobjects.jnotify.JNotify; public class watching{ public void watching(String s) throws Exception {
then this is the main class called nowwatch.java
public class nowwatch { public static void main(String[] args) throws Exception { System.out.println("Hello World!"); watching hello = new watching(); hello.watching("C:/Users/Raden/Documents/Downloads"); } }
but why did the error go like this? I had a screenshot of the error so you can see it by clicking on the link
Have any of you ever experienced this type of error? any help would be appreciated though. thanks
source share