简体   繁体   中英

Scala project with maven in IntelliJ does not compile

I created a scala project and included Maven framework in it. After that the code doesn't compile and hence when I run the file, I end up getting the following error

Error: Could not find or load main class main.scala.TestSpark

错误

Mark scala directory as Sources Root .

将scala目录标记为Source Root

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM