GWT:gwt-user.jar和gwt-dev.jar之间的区别? [英] GWT: Difference between gwt-user.jar and gwt-dev.jar?

查看:462
本文介绍了GWT:gwt-user.jar和gwt-dev.jar之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

gwt-user.jar gwt-dev.jar 有什么区别?看看它们的内容,我看不出它们为什么被打包。



我特别想知道如何使用这两个JAR进行编译和部署。

我需要哪两个...


  1. ...用于运行 javac code>(.java to .class)?

  2. ...用于运行GWT编译器(.class to JavaScript)?
  3. ...用于运行GWT开发模式和调试?

  4. ...用于将我的应用程序部署到Google App Engine?

  5. ...在我的Eclipse项目的类路径中?

任何有关这些用法的澄清,或者更好的解释, 。

解决方案

gwt-user.jar包含您将直接与之交互的GWT api。



gwt-dev.jar包含gwt编译器,开发/托管模式等的代码。
$ b


运行javac(.java到.class)?


我假设你只是想解析引用,在这种情况下gwt用于运行GWT编译器(.class to JavaScript)的



gwt-dev.jar以及用于解决依赖关系的gwt-user.jar


for运行GWT开发模式并进行调试?


再次gwt-dev.jar包含了实际运行开发模式的所有内容,但您的代码将会
$ b


用于将我的应用程序部署到Google App Engine?

使用gwt-user.jar以及

/ blockquote>

这由 Google Eclipse插件处理也没有这些罐子。如果您是通过其他方法来完成此操作,则不需要将这些jar文件部署到App Engine中


我的Eclipse项目的类路径?

您的eclipse项目应该只需要gwt-user.jar



一个你没有提到的jar是gwt-servlet.jar,如果你打算做任何服务器端的通信,你也需要这个作为eclipse项目中的项目依赖项。



使用GWT Eclipse插件将为您处理大量这些依赖项。


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 ...

  1. ... for running javac (.java to .class)?
  2. ... for running the GWT compiler (.class to JavaScript)?
  3. ... for running GWT development mode and debugging?
  4. ... for deploying my app to Google App Engine?
  5. ... 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.

for running javac (.java to .class)?

I assume you just mean to resolve references in which case gwt-user.jar

for running the GWT compiler (.class to JavaScript)?

gwt-dev.jar as well as gwt-user.jar for dependency resolution

for running GWT development mode and debugging?

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

for deploying my app to Google App Engine?

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

to have in my Eclipse project's classpath?

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.

这篇关于GWT:gwt-user.jar和gwt-dev.jar之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆