I created new Java module from scratch in my project. \"create \'src\' folder\" was selected in module creation wizard. There is single \"com\" package in source folder which co
Try compiling the whole project (or at least class B
) first.
If you compile only class A
, class B
cannot be found because it hasn't been compiled yet (therefore, no bytecode B.class
file exists).
This is not intuitive, but true. IDEA doesn't automatically compile dependant classes when you compile single class.