I got some java bytecode (so compiled java-source) which is generated in my program. Now I want to load this bytecode into the currently running Java-VM and run a specific function. I'm not sure how to do this, I worked a bit in Java Classloaders, but did not find a direct path.
I found a solution that takes the class file on the hard drive, but the bytecode I received is in a byte array, and I don't want to write it to disk, but use it directly.
Thanks!
java bytecode classloader
theomega
source share