• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

applet not loading in browser

 
vivien siu
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello can somebody help me pinpoint the problem?

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.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
vivien siu
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exception are logged in the Java Console. But you said that a NPE was thrown, so you already know where to look for them.

Can you run any applets, e.g. this one?
 
vivien siu
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No Ulf I cant even access it, the page was blocked by my company's proxy

yeah I'm using JDK 1.5 too!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic