small medium large xlarge

29 Jul 2015, 22:56
Emil Bader (1 post)


I’m following the examples from the book and I am stuck on the support code chapter (8). When I try to start the server from the example code (srjcuc-code\code\support_code\10) with mvn exec:java -Dexec.mainClass=”nicebank.AtmServer”, I get the following error:

(java.lang.ClassNotFoundException: nicebank.AtmServer
        at java.lang.ClassLoader.loadClass(
        at java.lang.ClassLoader.loadClass(
        at org.codehaus.mojo.exec.ExecJavaMojo$

I’m running this through the command prompt on Windows 10.

Can anyone please help me? Thanks in advance.

31 Jul 2015, 19:06
Seb Rose (21 posts)

Hi Emil,

Did the source code in support_code\10 build successfully when you ran mvn clean test? You’ll need to do that first before you can start the server.

Cheers Seb

You must be logged in to comment