wood burning stoves 2.0*
The moose likes Applets and the fly likes applet not loading in browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "applet not loading in browser" Watch "applet not loading in browser" New topic
Author

applet not loading in browser

vivien siu
Ranch Hand

Joined: Nov 10, 2005
Posts: 143
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.


I'm not available, my BF's name is WORK.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41066
    
  43
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.


Ping & DNS - my free Android networking tools app
vivien siu
Ranch Hand

Joined: Nov 10, 2005
Posts: 143
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
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: 41066
    
  43
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

Joined: Nov 10, 2005
Posts: 143
No Ulf I cant even access it, the page was blocked by my company's proxy

yeah I'm using JDK 1.5 too!
 
Don't get me started about those stupid light bulbs.
 
subject: applet not loading in browser
 
Similar Threads
Applet using Tomcat
Problem in jre1.5 with IE Browser
Applet to database problem
Applet with Tomcat
Applet closing all browser windows