in my test.gwt.xml
I get this error:
Loading inherited module 'org.scribe.model'
[ERROR] Unable to find 'org/scribe/model.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
[ERROR] Line 8: Unexpected exception while processing element 'inherits'
However, I have found from many sources that you need the source files to compile the client side gwt. My question is what if one cannot get a source file of the .jar package? What is the workaround?
Thanks in advance.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
如果它是 GWT 模块,则它与源代码一起打包。检查 jar Java 文件应该在其中。
有两种方法可以在
GWT
应用程序中使用第 3 方依赖项。GWT
模块,其中包含模块 xml 文件以及源文件。在这种情况下,您只需使用inherits
引用它。GWT
要求源代码位于client
包下。即使您这样做,因为该工件在开发时并未考虑到GWT
,它很可能包含GWT
不允许的代码,例如您不能使用Thread< GWT 中的 /code>s。
If it is a GWT module it is packaged with sources. Check the jar Java files should be in it.
There are two ways to use a 3rd party dependency in your
GWT
application.GWT
module already which contains a module xml file along with the source files. In this case you just refer to it usinginherits
.GWT
requires source code to be underclient
package. Even you do so since the artifact is not developedGWT
in mind, it might most likely contain code that is not allowed byGWT
, e.g. you cannot useThread
s in GWT.没有解决方法。你需要源文件..至少你可以反编译类文件..
There is no workaround. You need source files.. At least you can decompile class files..
我的建议是在服务器端处理密集的逻辑(在服务器包内)。
在服务器端,您可以使用 GWT 前端不支持的类(客户端包中的类)。
例如
当我尝试在客户端中使用 BufferedReader 时,出现异常,然后我将其移至服务器包并重新调整结果。 RE 也是如此,它在客户端代码中也不起作用。
让您的客户端代码尽可能简单。
希望这有帮助。
干杯
PB
My suggestion would be to handle intense logic on server side (within server package)
On the server side , you can use classes that are not supported by GWT front-end (classes in client package).
E.g
When I tried to use BufferedReader in client, I got exceptions, I then moved it to server package and retuned the result. The same was for RE which didn't work in client code too.
Keep your client code as simple as possible.
Hope this helps.
Cheers
PB