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

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

问题描述

gwt-user.jargwt-dev.jar 有什么区别?看着它们的内容,我不明白为什么它们被包装成这样.

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.

我特别想知道如何使用这两个JAR进行编译和部署.
我需要这两者中的哪一个...

I am wondering especially how to use the two JARs for compilation and deployment.
Which of the two do I need ...

  1. ...用于运行 javac(.java 到 .class)?
  2. ...用于运行 GWT 编译器(.class 到 JavaScript)?
  3. ...用于运行 GWT 开发模式和调试?
  4. ...用于将我的应用部署到 Google App Engine?
  5. ...是否在我的 Eclipse 项目的类路径中?
  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 包含您将直接与之交互的 GWT api.

gwt-user.jar contains the GWT api which you will interface directly with.

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

gwt-dev.jar contains code for gwt compiler, development/hosted mode etc.

用于运行 javac(.java 到 .class)?

for running javac (.java to .class)?

我假设你只是想在这种情况下解析引用 gwt-user.jar

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

用于运行 GWT 编译器(.class 到 JavaScript)?

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

gwt-dev.jar 和 gwt-user.jar 用于依赖解析

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

用于运行 GWT 开发模式和调试?

for running GWT development mode and debugging?

再次 gwt-dev.jar 包含实际运行开发模式的所有内容,但您的代码也将在这里使用 gwt-user.jar

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

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

for deploying my app to Google App Engine?

这由 Google Eclipse 插件 处理,而这两个 jar 都没有处理.如果您通过其他方法执行此操作,但您不需要将这些 jar 文件中的任何一个部署到 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

是否在我的 Eclipse 项目的类路径中?

to have in my Eclipse project's classpath?

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

your eclipse project should just need gwt-user.jar

您没有提到的一个 jar 是 gwt-servlet.jar,如果您计划进行任何服务器端通信,您还需要将其作为 eclipse 项目中的项目依赖项.

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.

使用 GWT Eclipse 插件将为您处理很多这些依赖项.

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天全站免登陆