gwt-user.jar and gwt-servlet.jar

297 views
Skip to first unread message

LoneWolf

unread,
Jun 14, 2007, 8:40:55 PM6/14/07
to Google Web Toolkit
Hi.
What is the difference between these two jars?
Which one I should include in a production application?
Thanks for help.

Adam T

unread,
Jun 15, 2007, 12:52:09 AM6/15/07
to Google Web Toolkit
In essence, the gwt-user jar contains all the basic classes you need
for client side application development; gwt-servlet has the classes
necessary for the server-side to perform RPC etc.

In an deployed application you only need to place the gwt-servlet
class on the server's classpath, and only then if you are using RPC
etc; the gwt-user class is not needed once you have compiled your
code. (several versions ago the classes for RPC were only in the gwt-
user jar so if you search this group you might find old messages
telling you to put gwt-user.jar on your server, but that is no longer
the case).

HTH!

//Adam

Reply all
Reply to author
Forward
0 new messages