wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes How to use the book CD tester Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "How to use the book CD tester" Watch "How to use the book CD tester" New topic

How to use the book CD tester


Joined: Jul 24, 2002
Posts: 1
Hi ,
I got CD of 'Complete Java TM2 certification Study Guide' by Simon Roberts.
I do not know how to run the tester of this CD. I tried to run
c:>\java Test
which gives error:
Exception in thread "main" java.lang.NoClassDefFoundError: Test (wrong name: test)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)

I set the classpath and Path with the directory where the test classes stored.
please give the details if you have any.
thanks ,
Valentin Crettaz
Gold Digger

Joined: Aug 26, 2001
Posts: 7610
Welcome to Javaranch
We'd like you to read the Javaranch Naming Policy and change your publicly displayed name to comply with our unique rule. Thank you.
If you have acquired the second edition of the book, please read page 846 for information about how to launch the test application.
Simply go to the /tests directory of the CDROM and type the following command:
>java -jar Chapter01.jar
in order to launch Chapter 1's test...

[Blog] [Blogroll] [My Reviews] My Linked In
subject: How to use the book CD tester