Haskell Fun Haskell Fun - 1 month ago 8
Java Question

Executing code generated by javap -c

Lets consider following scenario:

javap -c Test.class > bytecodeTest


How to execute content of
bytecodeTest
?

Answer

You could write a program to rebuild the byte code from this output, but I don't know of any.

Usually you would use a decompiler if you wanted to compile it later. A decompiler is designed to produce an output which can be compiled. Intellij's built in decompiler is pretty good and even handles lambdas.