Teammates: Help Request: IntelliJ IDEA 'Cannot resolve symbol' error for standart Java classes

Created on 11 Mar 2018  路  5Comments  路  Source: TEAMMATES/teammates

I succefully imported project using this instruction https://github.com/TEAMMATES/teammates/blob/master/docs/ide-setup.md#intellij-idea
but have had 'Cannot resolve symbol' errors for standart Java classes imports. Caches Invalidation didn't help.
2018-03-11 23-01-50

a-DevHelp c.Message

Most helpful comment

I tried and it worked

All 5 comments

@Artyom-Ganev
Try this: click on "gradle" on the right side of your intellij toolbar. After which, click on the refresh symbol.
image

Let us know if it works for you!

It didn't help. Are the settings correct?
2018-03-17 15-30-13

I tried to run tests and got Error:java: Fatal Error: Unable to find package java.lang in classpath or bootclasspath
2018-03-17 15-41-52

Soulution is here
https://stackoverflow.com/questions/3049433/intellij-gives-fatal-error-unable-to-find-package-java-lang-in-classpath-or-boo

Somehow the JDK language jars were removed from the classpath. All I had to do was reapply the JSDK home path.

Goto: File -> Project Structure -> Platform Settings -> SDKs Re-apply the JSDK home path.

Doing this added about 15 jars to the classpath. Apparently these are important for compiling.

Did you try the solution in the stackoverflow answer? Still doesn't work?

I tried and it worked

Was this page helpful?
0 / 5 - 0 ratings