small medium large xlarge

Generic-user-small
29 Jul 2015, 22:56
Emil Bader (1 post)

Hi,

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.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:281)
        at java.lang.Thread.run(Thread.java:745))

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

Can anyone please help me? Thanks in advance.

Generic-user-small
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