IntelliJ 14 Java and Scala ClassNotFoundException -
i upgraded intellij 14, added scala support.
my main files stopped running. example gui file, has no errors , totally self contained hello world
style testing error:
exception in thread "main" java.lang.classnotfoundexception: gui
it makes no sense , i'm pretty frustrated intellij devs slacking in not auto-detecting solution this. have tried fix it. settings, compilers, making project scratch.
i had bit of luck when making scratch, started add other files (files not being used!) starts error.
it seems files outside of original project module (when creating new project test fix) not run giving classnotfoundexception.
this may related other question: https://stackoverflow.com/questions/27516673/cannot-run-file-located-out-of-main-module-intellij-14-java-scala
i had same problem , able fix right clicking directory class in, , clicking mark sources root. should make class discoverable , able run. solution image
Comments
Post a Comment