<div dir="ltr"><div><div><div><div>Hi All,<br><br></div>I am a newbie to java. How do I programmatically create "*.class" files using the compiler API? I do not want to parse "*.java" files , but generate "*.class" files. This brings me to the next question of how to execute dynamically generated byte code: just like JRE jas JIT I would like to programmatically JIT java byte code and execute it. This is inline with the concept of self modifying code:<br><br><a href="https://en.wikipedia.org/wiki/Self-modifying_code">https://en.wikipedia.org/wiki/Self-modifying_code</a><br><br></div>Any pointers/code-snippets to the compiler API that I can use would be helpful.<br><br></div>Thank you,<br></div>Keerthivasan Raghavan<br></div>