Cannot Run the Applet

29 views
Skip to first unread message

harsh yadav

unread,
Apr 28, 2010, 5:42:38 PM4/28/10
to gw...@googlegroups.com
Hi I tried running the the test applet, given on the project group.

I followed the exact steps, and searched internet a lot to fix the error.

However, I am getting a class not found exception. And as I read a lot of other people are also getting the same error.

Is this resolved, or is there any work-around.

Here is the error log (from the browser):

<error>
load: class edu.rutgers.poodle.gui.applet.FolderChooserAppletImpl.class not found.
java.lang.ClassNotFoundException: edu.rutgers.poodle.gui.applet.FolderChooserAppletImpl.class
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:http://localhost:8888/edu/rutgers/poodle/gui/applet/FolderChooserAppletImpl/class.class
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 7 more
Exception: java.lang.ClassNotFoundException: edu.rutgers.poodle.gui.applet.FolderChooserAppletImpl.class
</error>

Thanks and Regards,
Harsh Yadav

--
You received this message because you are subscribed to the Google Groups "gwtai" group.
To post to this group, send email to gw...@googlegroups.com.
To unsubscribe from this group, send email to gwtai+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gwtai?hl=en.

kilkenny

unread,
Apr 29, 2010, 1:55:06 AM4/29/10
to gwtai
Hi Harsh

The ClassNotFoundException occurs in the browser, right? You have to
make sure that your build (Ant I assume) places the needed classes in
the right place.

So you have to take the following steps:
1. Build one or multiple JAR files containing all classes and
resources needed by your applet.
2. Use the GwtAI @Archive annotation to tell GwtAI how these JAR files
are named.
3. Place the JAR files such that the browser can see them. Eg. in the
GWT output directory or inside the WAR file you want to deploy.
4. Use the GwtAI @Codebase annotation to tell GwtAI where the JAR
files can be found.

I'll do a more detailed FAQ entry explaining where the
ClassNotFoundException is coming from...

Hope that helps.

Regards, Adrian

On Apr 28, 11:42 pm, harsh yadav <harsh.de...@gmail.com> wrote:
> Hi I tried running the the test applet, given on the project group.
>
> I followed the exact steps, and searched internet a lot to fix the error.
>
> However, I am getting a class not found exception. And as I read a lot of
> other people are also getting the same error.
>
> Is this resolved, or is there any work-around.
>
> Here is the error log (from the browser):
>
> <error>
> load: class edu.rutgers.poodle.gui.applet.FolderChooserAppletImpl.class not
> found.
> java.lang.ClassNotFoundException:
> edu.rutgers.poodle.gui.applet.FolderChooserAppletImpl.class
> at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
>  at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
>  at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
> at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
>  at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown
> Source)
> at java.lang.Thread.run(Unknown Source)
> Caused by: java.io.IOException: open HTTP connection failed:http://localhost:8888/edu/rutgers/poodle/gui/applet/FolderChooserAppl...
Reply all
Reply to author
Forward
0 new messages