I did an applet class, it views fine in the AppletViewer. but when I try to run it inside a browser(IE6). The applet failed to load and it's throwing a null pointer exception.
I have same problems whenever I try to load an applet from any website.
I'm not available, my BF's name is WORK.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35258
7
posted
0
What kind of exceptions are you seeing? One thing that differentiates appletviewer from a real browser is that appleyviewer does not enforce any of the security restrictions that apply to applets. So if the applet does something forbidden, security exceptions would be thrown in the browser, but not in appletviewer.
so how can I check what exceptions are being thrown?
sicne not only my code cannot display applets in browser but apparently other websites as well, I think it might be the blocker software in my company causing problems
shuba karthik
Greenhorn
Joined: Sep 03, 2004
Posts: 14
posted
0
Even I am facing a similiar issue. I have Windows XP and JRE1.5 installed in my PC. I tried accessing http://www.javaranch.com/game/game2.jsp. Instead of applet I get a X symbol on the top left corner. Then I uninstalled JRE1.5 and Installed JRE1.3 I get an error message saying "java.lang.ClassNotFoundException:javaranch.roundup.applets.QuizApplet.class Please help me resolve the issue.
TIA, Subhakarthik
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35258
7
posted
0
Exception are logged in the Java Console. But you said that a NPE was thrown, so you already know where to look for them.