1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Rep Power

    Problems with applet "Hello World"

    I'm trying to get an applet to work but i get this error in eclipse : JAR export finished with warnings. See details for additional information.
    Exported with compile warnings: HelloWorldWeb/src/HelloWorldWeb.java.

    The jar file exported but does not seem to work. When I open the html file to load the applet I get a noclassdef error. Here is the code. All files are in the same folder.

    import acm.graphics.*;
    import acm.program.*;
    public class HelloWorldWeb extends GraphicsProgram{
        public void run(){
            add(new GLabel("hello, world"), 20, 20);

        <title>Hello World</title>
        <applet archive = "HelloWorldWeb.jar"
                code = "HelloWorldWeb.class"
                width = 300 height = 150>
  2. #2
  3. Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Aug 2010
    Eastern Florida
    Rep Power
    I get a noclassdef error
    Can you copy the full text of the error message and paste it here?

    Sometimes browsers think the .class is part of the classname. Try removing the .class from the code= attribute's value.

IMN logo majestic logo threadwatch logo seochat tools logo