Need some guidance in integrating Applets with gwt.

69 views
Skip to first unread message

baks!!

unread,
Jul 17, 2011, 10:35:40 AM7/17/11
to gwtai, amol.u...@jpmorgan.com
Hi Guys,

I am trying to integrate my applet with GWT using gwtai. My GWT
version is 2.0.0.4.

I checked out many of blogs and post related to this and did my
coding. But in the end I am getting the same "ClassNotFoundException"
which many other people have got.

My first question is : Is it possible to run an applet in ecllise
hosted mode using gwtai ? if yes how to remove the
"classnotfoundexception" ?

I also checked out this post here :
http://groups.google.com/group/gwtai/browse_thread/thread/e474579207eab8fb

where Adrian suggest to do these things :

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 tried doing these but have a few questions. The applet interface
class inherits many other things(like the gwtai jars itself) from
where I should refer these things in my jar?

Till the Interface class is not compiled the applet class which
implements it doesnt compile too.

Sorry if I am a little ignorant of somethings. But if possible can you
please tell me a step by step process to do so?

Drossen Koren

unread,
Dec 2, 2013, 4:28:47 PM12/2/13
to gw...@googlegroups.com, amol.u...@jpmorgan.com
You must deploy your WAR file to a web container, such as tomcat, and access the site using a web browser in order to test your applets.  I do not believe that using the eclipse hosed mode would work.  Also, I believe GWT 2.3.0 is the version supported by GWTAI 0.3, and GWT 2.4.0 is the version supported by branch_0.4.1.  You should be using a supported version of GWT, as the proxy builder APIs that GWTAI relies on, can change from one version of GWT to the other.
Reply all
Reply to author
Forward
0 new messages