如何找出 GWT(客户端)中缺少哪些 Java 类? [英] How to find out which Java classes are missing in GWT (client side)?

查看:27
本文介绍了如何找出 GWT(客户端)中缺少哪些 Java 类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将 Java 库导入 GWT 项目.

I am trying to import a Java library into a GWT project.

由于 GWT 的客户端无法访问整个 Java API,因此无法找到某些类.

Since the client-side of GWT does not have access to the whole Java API, some classes cannot be found.

不幸的是,编译器没有抱怨,因为 J2EE 包包含在项目中(用于服务器端代码).

Unfortunately, the compiler does not complain because the J2EE package is included into the project (for the server side code).

现在,我如何才能找出我的库需要的哪些 Java 类在客户端丢失了?有没有清单之类的?

Now, how can I find out which Java classes, my library requires, are missing on client-side? Is there a list out there or something?

推荐答案

此链接 GWT JRE Emulation Reference 显示了您可以在客户端使用的类的列表.有一些客户端库可以将缺失的小部件或功能添加到开箱即用的 API 中.

This link GWT JRE Emulation Reference shows the list of the classes you can use on the client side. There are out there client libraries to add missing widgets or features to the out-of-the-box API.

这篇关于如何找出 GWT(客户端)中缺少哪些 Java 类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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