As it's Java 6 you are using
java -cp c:\lib\* <name of class>
should work.
Note 1 - this is a new feature (since Java 5 I think). It won't work for earlier versions.
Note 2 - * does not have it's usual meaning of match all files - it only matches jar files. *.jar doesn't work - it must be just *
See the 'Understanding class path wildcards' section of
this for full details.
[ September 19, 2008: Message edited by: Joanne Neal ]