java - ClassNotFoundException running simple applets -


i wrote http://pastebin.com/ewshf3ys school; it's simple java applet gui pair of eyes watches cursor moves. runs in compiler (netbeans 7.4) , life of me i'm having difficulty understanding why doesn't run in browser. i'm getting classnotfound exceptions. reading i've been doing suggests .class file isn't required because it's applet, browser should generate 1 @ runtime. , if class required, how come netbeans can run without one?

the html file stored in same directory .java - , it's real simple:

<html> <head> <title>watchme</title> </head> <body> <applet code="watchme.class" width="300" height="200"> </applet> </body> </html> 

i've tried variety of different things, different browsers, setting classpath; opening on different computers. result same, classnotfound exception. internet research i've been doing yields unproductive answers, such 1 person reloaded pc. i've noticed if qualify path watchme.class hang/blank browser page. i'm out of ideas, suggestions or advice welcome.

you need have compiled watchme.class in same directory html file. having .java file not enough , no browser not compile you. run .class file using jre.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -