• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to use the book CD tester  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!