ClassNotFoundException: Engine

I have just bought a macbook pro and installed IntelliJ. I have imported my Gatling project and it builds in IntelliJ.
However when I try to run ´Engine´ it failes with the following message:

/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java -

Exception in thread “main” java.lang.ClassNotFoundException: Engine
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(
at com.intellij.rt.execution.application.AppMain.main(

Do I need to build it with maven to get aloe the dependencies or dos IntelliJś Rebuild command make sure of this?



It looks like a classpath issue. Sometime module settings needs to be tweaked. i have attached a screenshot of mine. Also, Engine is src/test/

Yes, that was the problem. I have fires it noe. Thanks!