Many syntax errors highlighted in the IDE, but compiling perfectly in command line

Hello guys,

I am testing Idea with a Lift project in maven. The project compiles and works perfect in the command line, but IDEA marks many syntax errors with java related classes within the scala code.

For instance, in this line:

import _root_.java.sql.{Connection, DriverManager}

I receive a "cannot resolve symbol Connection" in the editor, but the line compiles and works just fine with maven in the command line.

I guess I am setting something wrongly, but everything seems to be ok in the module setup.

Any suggestions?

Thanks in advance,

GA

2 comments

Should I add something about the JDK in the pom.xml file? The JDK is informed in the Module Settings, but it is not recognized, I think.

0

Apparently was an error in the JDK setup. I have reconfigured it and now it seems to work fine.

0

Please sign in to leave a comment.