mirror of
https://gitee.com/ja-netfilter/ja-netfilter
synced 2026-06-20 16:45:36 +08:00
fixed for java25
Signed-off-by: pengzhile <pengzhile@gmail.com>
This commit is contained in:
parent
30a07f9c60
commit
dcff7747da
3 changed files with 19 additions and 10 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# ja-netfilter 2022.2.0
|
||||
# ja-netfilter 2025.3.0
|
||||
|
||||
### A Java Instrumentation Framework
|
||||
|
||||
|
|
@ -10,12 +10,6 @@
|
|||
* some apps support the `JVM Options file`, you can add as a line of the `JVM Options file`.
|
||||
* **WARNING: DO NOT put some unnecessary whitespace characters!**
|
||||
* or execute `java -jar /path/to/ja-netfilter.jar` to use `attach mode`.
|
||||
* for **Java 17** you have to add at least these `JVM Options`:
|
||||
|
||||
```
|
||||
--add-opens=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED
|
||||
--add-opens=java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED
|
||||
```
|
||||
|
||||
* edit your plugin config files: `${lower plugin name}.conf` file in the `config` dir where `ja-netfilter.jar` is located.
|
||||
* the `config`, `logs` and `plugins` directories can be specified through **the javaagent args**.
|
||||
|
|
|
|||
17
pom.xml
17
pom.xml
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
<groupId>com.ja-netfilter</groupId>
|
||||
<artifactId>ja-netfilter</artifactId>
|
||||
<version>2022.2.0</version>
|
||||
<version>2025.3.0</version>
|
||||
|
||||
<name>ja-netfilter</name>
|
||||
<description>A Java Instrumentation Framework</description>
|
||||
|
|
@ -165,6 +165,21 @@
|
|||
</profile>
|
||||
</profiles>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm</artifactId>
|
||||
<version>9.9</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-tree</artifactId>
|
||||
<version>9.9</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-commons</artifactId>
|
||||
<version>9.9</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.sun</groupId>
|
||||
<artifactId>tools</artifactId>
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@ import java.util.jar.JarFile;
|
|||
|
||||
public class Launcher {
|
||||
public static final String ATTACH_ARG = "--attach";
|
||||
public static final String VERSION = "2022.2.0";
|
||||
public static final int VERSION_NUMBER = 202201000;
|
||||
public static final String VERSION = "2025.3.0";
|
||||
public static final int VERSION_NUMBER = 202503000;
|
||||
|
||||
private static boolean loaded = false;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue