Invalid layout of java.lang.Thread at name
Error occurred during initialization of VM
Invalid layout of preloaded class: use -XX:+TraceClassLoading to see the origin of the problem class
public class JavaEcho {
public static void main(String[] args) {
String input = "";
while(!"quit".equals(input)) {
System.out.print("Say : ");
Scanner scan= new Scanner(System.in);
input = scan.nextLine();
System.out.println("Echo: " + input);
}
}
}
hotswap-agent.propeties
in the same directory with the following properties:
extraClasspath=compile/JavaEcho.class
autoHotswap=true
java -XXaltjvm=dcevm -javaagent:/home/zakaria1/Downloads/hotswap-agent-1.0.jar -cp . JavaEcho
webapps/yourapp/WEB-INF/classes