CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 1999
    Posts
    6

    Problem in loading applet from Javawebserver ??????

    Hi: I am trying to load a swing based applet from a javawebserver2.0 and it gives me the error or prompt at the status bar as " Applet <applet name> notinited " and i have a greyed out area at the place where the applet is supposed to show up. The files (html+java+class) are in the public_html dir of javawebserver.I am running the html file using "http://localhost:8080/filename.html. I downloaded Java Plug-In to enable swing components on applet. Javawebserver is loaded on my machine and my working env is W95. Here is the html code i used:
    <html>
    <head><title> Applet</title></head>
    <body>
    <H1> GOOD JOB </H1>
    <EMBED type="application/x-java-applet;version=1.2"
    width="120" height="160" align="middle"
    code="frontend1.class"
    codebase="/"
    pluginspage="http://java.sun.com/products/plugin/1.2/
    plugin-install.html">
    <NOEMBED>
    No JDK 1.2 support found!
    </NOEMBED>
    </EMBED>
    </body>
    </html>
    Also could somebody tell where i can download "swingall.jar" file. I thought it was supposed to come along with JDK1.2.
    Coming back to my problem, i tried even to load an AWT applet from the same javawebserver, but it gives me status bar prompt "java.lang.NoClassDefFoundError" Why is this so ????
    Both of the applets works fine with AppletViewer. By the way, i am using Netscape Communicator 4.5
    Please reply asap.


  2. #2
    Join Date
    May 1999
    Location
    Pune, MH, India.
    Posts
    453

    Re: Problem in loading applet from Javawebserver ??????

    Basically swing classes comes bundled with jdk1.2 classes. U don't need swingall.jar file with jdk1.2

    I don't know why u r getting this error when using jdk1.2. One possibility may be u r using 'com.sun.java.swing' instead of 'javax.swing' which is the changed package name for swing classes in jdk1.2 to work.

    - UnicMan
    http://members.tripod.com/unicman

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured