mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 21:15:56 +08:00
- Rename JNI class from InjectorNative to Injector in libinject.c - Add JNI header for cn.xiaozhou233.juiceagent.injector.Injector - Add inject-via-java-api example with HowToUse.txt and 如何使用.txt
17 lines
470 B
Batchfile
17 lines
470 B
Batchfile
@echo off
|
|
cd /d "%~dp0"
|
|
|
|
set "INJECTOR_JAR=injector\JuiceAgent-JavaInjector-1.0-SNAPSHOT.jar"
|
|
|
|
echo === Java API Injector ===
|
|
echo.
|
|
echo Make sure the target JVM is running (run.bat).
|
|
echo.
|
|
echo Usage: This script runs the JavaInjector which will prompt for:
|
|
echo - PID: target JVM process ID
|
|
echo - DLL: path to libloader.dll
|
|
echo - config_path: directory containing config.toml (leave empty to use current dir)
|
|
echo.
|
|
|
|
java -cp "%INJECTOR_JAR%" JavaInjector
|
|
pause |