GWT有自己的classpath概念吗? [英] Does GWT have its own notion of classpath?

查看:114
本文介绍了GWT有自己的classpath概念吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

GWT编译器是否具有与正常编译时类路径分开的自己的classpath的概念? GWT应用程序(及其内部工作方式)是否拥有自己的类路径的概念,它与正常的JRE运行时类路径是分开的? 解决方案

GWT有模块的概念。每个模块都会声明源路径中包含哪些软件包。模块可以扩展其他模块。 GWT编译的每个类必须位于主模块扩展的一个模块的源路径中。

源模块与模块相结合的概念为GWT编译器构建了一些单独的类路径。但它与java classpath无关。

Does the GWT compiler have a notion of its own "classpath" that is separate from the normal compile-time classpath? Does a GWT app (and its internal workings) have the notion of its own classpath that is separate from the normal JRE runtime classpath?

解决方案

GWT has the notion of modules. Each module does declare what packages are in its source path. Modules can extend other modules. Every Class the GWT compiles has to be in the source path of one module your main module extends from.

The notion of sourcepath combined with modules builds some kind of separate classpath just for the GWT Compiler. But it has nothing to do with the java classpath.

这篇关于GWT有自己的classpath概念吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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