简体   繁体   中英

Scala ClassNotFoundException Random Constant

I have quite a few mixed scala and java projects. They will run just fine up to some seemingly random time when they don't.

Compile goes fine, with zero errors or warnings, yet on run I get the infamous

ClassNotFoundException

In this current project I have only Scala files, and I deleted all of them and left it at a simple Test object with main method.

YET IT STILL SAYS ClassNotFoundException

I have scoured the net, and tried everything I have found.

Has anyone had this experience, and moreover, are there any suggestions?

Are you trying to run a run configuration for a class that have been deleted? If you're using Intellij and pressing Shift-F10 it will happily try to run a configuration even though the class does not exist anymore.

My other related question actually provides more insight and provides a solution to this problem.

Running Objects in Play 2.0 Framework

Hope it helps when everyone is using Scala in a few years...

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