java - 当GWT无法找到类路径时,我应该在哪里添加(Intellij)

标签 java intellij-idea gwt

我正在尝试运行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选项的类路径变量。但仍然得到错误

enter image description here

我的gwt设置为构面:

enter image description here

并作为一个模块:



我的项目文件夹结构如下:

-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/

相关文章:

java - Capistrano 任务未在 cap 部署中运行

intellij-idea - Webpack 有时无法检测到使用 Intellij Idea 保存的更改

java - 使用 Maven 在 IntelliJ IDEA 中构建 JavaFX 应用程序

java - intellij idea中tomcat 7中的参数

java - 用于 Java/GWT 的 NoSQL DB(有向图)?

java - 方括号内的单词 - 正则表达式

java - 返回值的可运行替代方案

java - 将 HbaseTestingUtility 与 hbase-shaded-server 和 hbase-shaded-client 一起使用

java - 如何使用将字符串拆分为没有特殊字符的字符数组?

tomcat - 在带有 GWT Tomcat 服务器端和 Jetty 的 IDEA 14 intelijj 中无法使用调试器 - SuperDevMode