I am trying to use Class.forName().newInstance() to create objects from names.
The class is created ok (no ClassNotFoundException) but the newInstance() fails
The class is a non-static non-abstract inner class of an inner class with a simple constructor.
String className = "com.menatwork.gui$MultiDialog$anotherDialog";
Class clazz = Class.forName(className);
// fails here
Object ob = clazz.newInstance();
Is there a problem creating objects from inner classes or am I barking up the wrong tree?