mcΒΆ
Memory compiler, compiles
.javafiles into.classfiles in memory.
mc /tmp/Test.javaThe classloader can be specified with the -c option:
mc -c 327a647b /tmp/Test.javaThe output directory can be specified with the -d option:
mc -d /tmp/output /tmp/ClassA.java /tmp/ClassB.javaAfter compiling the .class file, you can use the redefine command to re-define the loaded classes in JVM.
Note that the mc command may fail. If the compilation fails, the
.classfile can be compiled locally and uploaded to the server. Refer to the redefine command description for details.