Files
JuiceAgent/java/loop.java
T
xiaozhou233 71c96b1333 [Update&BugFix] parameters, debug info, bugfix
1. allow injected parameters
2. add print debug info
3. some logic error
2025-10-06 22:38:33 +08:00

20 lines
628 B
Java

public class loop {
public static void main(String[] args) throws Exception {
try {
while (true) {
try{
Class clz = Class.forName("cn.xiaozhou233.Test");
//invoke printTest()
clz.getMethod("printTest").invoke(null);
} catch (ClassNotFoundException e) {
System.out.println("Class not found");
}
System.out.println("Hello World");
Thread.sleep(2000);
}
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}