I am trying to import the Serializable interface into a java executable using javaagent. How is this possible?
I found a way to do it. In the transform(ClassLoader loader, String className, Class clazz, java.security.ProtectionDomain domain, byte[] bytes)
method, just add loader.loadClass("java.io.Serializable")
.