Haskell Fun Haskell Fun - 9 months ago 51
Java Question

Executing code generated by javap -c

Lets consider following scenario:

javap -c Test.class > bytecodeTest

How to execute content of

Answer Source

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.