This question has nothing to do with Linux, it's really not
appropriate here.
> c = Class.forName("String");
> java.lang.ClassNotFoundException: String
> c = Class.forName("java.lang.String");
You have to use the full package name if you're using reflection-like
methods to work with classes. The imports at the top of the file are
only for the compiler; you're doing something dynamic, at runtime.
I'm not sure what you're doing, but typically you don't use
Class.forName() very often. Only use it if the classname has to be
dynamic. An alternative is Class c = java.lang.String.class.
[EMAIL PROTECTED]
. . . . . . . . http://www.media.mit.edu/~nelson/