Lets re-use the same validation that the Java class wizard uses for Classnames.  You should be able to inspect the code for that wizard and fine the validation that they use for class names.