Dynamically class creating by using Java Reflection, java.lang.ClassNotFoundException
问题 I want to use reflection in java, I want to do that third class will read the name of the class as String from console. Upon reading the name of the class, it will automatically and dynamically (!) generate that class and call its writeout method. If that class is not read from input, it will not be initialized. I wrote that codes but I am always taking to " java.lang.ClassNotFoundException ", and I don't know how I can fix it. Can anyone help me? class class3 { public Object dynamicsinif