×

Loading...

Topic

This topic has been archived. It cannot be replied.
  • 工作学习 / IT技术讨论 / Somebody asked me a question. Anybody can answer this on my behalf?
    Here I have a problem in creating applet in JBuilder3. I believe you
    know it. I created a simple java applet in Jbuilder3 (running JDk1.2
    which come with the software) and it can run in Jbuilder itself. But
    when I try to load it in netscape, I always got the error message:
    jave.lang.NoclassDeffounderror: javax/swing/JApplet

    What is the problem? And, do you recommend using JBuilder to create
    applet?
    • Response...
      I DO know the answer.

      Both IE and Netscape fall behind in supporting Java 2.
      So they cannot find JApplet. In another word, they don't support
      Java Swing

      Here are two approaches

      1) Dowbload Java Plug-in 1.3 from Sun, install it with
      your browser

      2) Fall back to java.awt. package, for instance,
      JApplet---> Applet
      JButton ---> Button.


      Now why did it work with Jbuildr 3?
      Jbuilder 3 uses appletviewer to parse your Applet.