我正在尝试运行GWT配置,但是在运行时出现此错误。
Loading modules
com.schantz.toplife.web.TopLifeWeb
Loading inherited module 'com.schantz.toplife.web.TopLifeWeb'
[ERROR] Unable to find 'com/schantz/toplife/web/TopLifeWeb.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
[ERROR] shell failed in doStartup method
我对GWT还是很陌生,所以不确定在哪里设置文件路径。
如您所见,我已经将toplifeweb.gwt.xml添加为vm选项的类路径变量。但仍然得到错误
我的gwt设置为构面:
并作为一个模块:
我的项目文件夹结构如下:
-code
--keylane
---jarrepository
---top
---combined
----topdanmark
----life
----core
jarrepository是初始项目
topdanmark,生活和核心已添加为模块。
并且所有项目和模块文件都保存在顶部文件夹中
我在Intellij工作
最佳答案
我的问题是我在vm选项中使用了错误的路径,而不是使用C:\ code \ keylane \ combined \ topdanmark,而是使用了C:\ code \ keylane \ top \ topdanmark
关于java - 当GWT无法找到类路径时,我应该在哪里添加(Intellij),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58935950/