all I have:
String desiredClass = "MyClass";
I want to instantize this class, but this name comes from this string. I know it can be done with:
Class.forName(desiredClass);
formula, but this also need the package path from this string (name.space.path.MyClass). I know it can be queried by .getPackage()
- but again, it needs a direct class reference, not from a string. It looks a snake has bitten its end :)