my JApplet, doesn't work in Web Browser

P

Peace

I built a JApplet and saw its running in Applet Viewer.

However, when I tried to view it in Web Browsers,
it doesn't show anything. (NullPointerException)

I tested in IE 6.0 SP2 with JRE 1.5, and Firefox 1.0.7 with JRE 1.5
plugin.
J2SE 1.4.2_09 with NetBeans is installed in my PC.

I also tried with JBuilder, but it was same.
(JBuilder runs my Applet correctly, but the applet doesn't work
on both of Web Browsers)

Could anyone tell me why this exception occured?
 
A

Andrew Thompson

Peace said:
I built a JApplet and saw its running in Applet Viewer.
<snip>

Roedy explained why your applet failed, but to take steps to
fix it, you might..
- Put the applet on the net so *we* can see it fail
- Post a (SHORT) self contained example of the code
that breaks, or better, link to it from your applet page.
<http://www.physci.org/codes/sscce.jsp>
- Post (/link to) the stacktrace you are getting in the
Java console of your browser.

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top