What is the difference between gwt-user.jar and gwt-dev.jar? Looking at their contents, I cannot see why they are packaged as they are.
I am wondering especially how to use the two JARs for compilation and deployment.
Which of the two do I need …
- … for running
javac(.java to .class)? - … for running the GWT compiler (.class to JavaScript)?
- … for running GWT development mode and debugging?
- … for deploying my app to Google App Engine?
- … to have in my Eclipse project’s classpath?
Any clarification on these uses or, even better, an explanation of why that is, would be greatly appreciated.
gwt-user.jar contains the GWT api which you will interface directly with.
gwt-dev.jar contains code for gwt compiler, development/hosted mode etc.
I assume you just mean to resolve references in which case gwt-user.jar
gwt-dev.jar as well as gwt-user.jar for dependency resolution
again gwt-dev.jar contains everything to actually run development mode, but your code will be making use of gwt-user.jar here as well
this is handled by the Google Eclipse Plugin and neither of these jars. If you are doing this via some other method though you should have no need for deploying either of these jar files to App Engine
your eclipse project should just need gwt-user.jar
One jar you have not mentioned is the gwt-servlet.jar if you are planning to do any server side communication you will also need this as a project dependency in your eclipse project.
Making use of the GWT Eclipse plugin will take care of a lot of these dependencies for you.