Lets consider following scenario:
javap -c Test.class > bytecodeTest
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.