my JApplet, doesn't work in Web Browser

Discussion in 'Java' started by Peace, Sep 29, 2005.

  1. Peace

    Peace Guest

    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?
     
    Peace, Sep 29, 2005
    #1
    1. Advertisements

  2. Peace

    Roedy Green Guest

    On 28 Sep 2005 23:03:22 -0700, "Peace" <> wrote
    or quoted :

    >Could anyone tell me why this exception occured?


    You made an error.


























    I tease. But you do you. How about some code?
    We are not mindreaders.


    --
    Canadian Mind Products, Roedy Green.
    http://mindprod.com Again taking new Java programming contracts.
     
    Roedy Green, Sep 29, 2005
    #2
    1. Advertisements

  3. Peace wrote:
    > 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
     
    Andrew Thompson, Sep 29, 2005
    #3
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. dw
    Replies:
    1
    Views:
    491
    Mohamed El Ashmawy
    Sep 14, 2004
  2. Cheok Yan Cheng

    ImageIcon.paintIcon wont work in JApplet

    Cheok Yan Cheng, Aug 13, 2003, in forum: Java
    Replies:
    0
    Views:
    1,869
    Cheok Yan Cheng
    Aug 13, 2003
  3. Matt
    Replies:
    1
    Views:
    1,023
    Brusque
    Oct 12, 2004
  4. Z
    Replies:
    12
    Views:
    5,451
    Knute Johnson
    Feb 19, 2007
  5. dddan
    Replies:
    2
    Views:
    1,288
    David C
    Dec 14, 2007
  6. MZ
    Replies:
    7
    Views:
    1,082
    Ed Mullen
    Mar 17, 2008
  7. Tilman
    Replies:
    0
    Views:
    572
    Tilman
    Mar 19, 2008
  8. AMC
    Replies:
    13
    Views:
    486
    Adrienne
    Jan 17, 2005
Loading...