I extended a class dynamically using ASM. I used defineClass method without ProtectionDomain argument.When I try to use that class in other class, I am getting java.lang.NoClassDefFound Error. How can I store or retrieve class definition which is defined runtime using ASM ?
-
2If you want help fixing your code, your best bet is to post the problematic code as a minimal reproducible example with a good description of what/where it goes wrong. Without any code, your question becomes far too broad.Erwin Bolwidt– Erwin Bolwidt2018-07-02 06:36:56 +00:00Commented Jul 2, 2018 at 6:36
-
This isnt what was intended in your question .. You must put the exact requirements and problem which you were facing for. You intended to ask for noClassDefFoundError for which a solution was provided.Amit Kumar Lal– Amit Kumar Lal2018-07-03 14:13:24 +00:00Commented Jul 3, 2018 at 14:13
-
Will be more specific with my question next time. Your code snippet helped me immensely to resolve my problem. Thankschirag nathwani– chirag nathwani2018-07-05 13:09:31 +00:00Commented Jul 5, 2018 at 13:09
Add a comment
|