在gwt模块中导入appengine库

时间:2022-10-20 18:45:27

I have a web application that contains a GWT module. In the client of my GWT module I want to use the library "com.google.appengine.api.datastore.DatastoreService" but, when I compile the gwt module, I have this error: "The import com.google.appengine.api.datastore cannot be resolved". Where is the problem

我有一个包含GWT模块的Web应用程序。在我的GWT模块的客户端中,我想使用库“com.google.appengine.api.datastore.DatastoreService”但是,当我编译gwt模块时,我有这样的错误:“导入com.google.appengine.api .datastore无法解决“。问题出在哪儿

2 个解决方案

#1


0  

The first and most obvious things to ask are: Have you downloaded the java appengine SDK and have you made the JAR files contained within available to your app? Are you using Eclipse?

第一个也是最明显的问题是:您是否已下载了java appengine SDK并且是否已将包含在其中的JAR文件提供给您的应用程序?你在用Eclipse吗?

#2


0  

I don't think it is possible. Anything on the client side gets translated to javascript that is ran in the browsers. You can directly access a database through javascript in the browser. Not all Java code can run in a browser. In fact not even all the JRE classes can be used either. If you need a type of storage on the client side, look at html 5 local storage.

我不认为这是可能的。客户端的任何内容都会转换为在浏览器中运行的javascript。您可以在浏览器中通过javascript直接访问数据库。并非所有Java代码都可以在浏览器中运行。实际上甚至不能使用所有JRE类。如果您在客户端需要一种存储类型,请查看html 5本地存储。

#1


0  

The first and most obvious things to ask are: Have you downloaded the java appengine SDK and have you made the JAR files contained within available to your app? Are you using Eclipse?

第一个也是最明显的问题是:您是否已下载了java appengine SDK并且是否已将包含在其中的JAR文件提供给您的应用程序?你在用Eclipse吗?

#2


0  

I don't think it is possible. Anything on the client side gets translated to javascript that is ran in the browsers. You can directly access a database through javascript in the browser. Not all Java code can run in a browser. In fact not even all the JRE classes can be used either. If you need a type of storage on the client side, look at html 5 local storage.

我不认为这是可能的。客户端的任何内容都会转换为在浏览器中运行的javascript。您可以在浏览器中通过javascript直接访问数据库。并非所有Java代码都可以在浏览器中运行。实际上甚至不能使用所有JRE类。如果您在客户端需要一种存储类型,请查看html 5本地存储。