Files
JuiceAgent/docs/Inject.md
T
2026-08-19 19:03:05 +08:00

597 B

Inject Method

Method A: Use injector.exe

Run injector.exe from YourDir.

<jps output>
Input PID:

Enter the PID of the target JVM process and press Enter.

Method B: Use JNI to call inject

Download the JuiceAgent-JavaInjector-x.x-xxxx.jar from here.

Add JuiceAgent-JavaInjector-x.x-xxxx.jar to your classpath.

Example:

import cn.xiaozhou233.juiceagent.injector.Injector;

System.load("<path-to-libinject>");

Injector.inject(<pid>, "<path-to-libloader>", "<path-to-config-directory>");