2012-03-21 50 views
1

我敢肯定,這是簡單的東西,但我有超過100個這樣的錯誤:錯誤中移動在Eclipse(靛藍EE)到IntelliJ IDEA的

enter image description here

和:

enter image description here

我指出Edit Configuration到Tomcat的位置,所以我錯過了什麼?

編輯:

好,感謝@CrazyCoder我加TomcatModule Dependencies,所以現在我已經留下了一個模塊,我不知道它應該是:JUnit

enter image description here

編輯2:

@CrazyCoder答曰:%IDEA_INSTALL_DIR%\lib\junit-4.10.jar

+0

如果您使用Gradle進行依賴關係管理,那麼它能夠爲Eclipse和IntelliJ生成元數據文件,從而正確設置類路徑,從而避免了這種麻煩。這是一個巨大的福音。 – 2012-03-21 15:25:24

回答

2

將Tomcat應用程序服務器添加到Module Dependencies提供的範圍內。

+0

拋出許多錯誤,我現在必須添加'JUnit'。它在哪裏? – Tar 2012-03-21 14:40:51

+1

'%IDEA_INSTALL_DIR%\ lib \ junit-4.10.jar' – CrazyCoder 2012-03-21 14:46:34