Java Reflection, java.lang.IllegalAccessException Error
- by rubby
Hi all,
My goal is :
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.
And I am taking java.lang.IllegalAccessException: Class…