mirror of
https://gitee.com/ja-netfilter/ja-netfilter.git
synced 2024-12-22 08:59:25 +08:00
1. fixed for java17
Signed-off-by: pengzhile <pengzhile@gmail.com>
This commit is contained in:
parent
6fdeb04ed9
commit
0b215450ca
@ -1,4 +1,4 @@
|
||||
# ja-netfilter 2022.1.0
|
||||
# ja-netfilter 2022.2.0
|
||||
|
||||
### A javaagent framework
|
||||
|
||||
@ -10,6 +10,12 @@
|
||||
* 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**.
|
||||
|
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>com.ja-netfilter</groupId>
|
||||
<artifactId>ja-netfilter</artifactId>
|
||||
<version>2022.1.0</version>
|
||||
<version>2022.2.0</version>
|
||||
|
||||
<name>ja-netfilter</name>
|
||||
<description>A javaagent framework</description>
|
||||
|
@ -26,6 +26,7 @@ public class Initializer {
|
||||
}
|
||||
|
||||
try {
|
||||
c.getGenericSuperclass();
|
||||
inst.retransformClasses(c);
|
||||
} catch (Throwable e) {
|
||||
DebugInfo.error("Retransform class failed: " + name, e);
|
||||
|
@ -12,7 +12,7 @@ import java.util.jar.JarFile;
|
||||
|
||||
public class Launcher {
|
||||
public static final String ATTACH_ARG = "--attach";
|
||||
public static final String VERSION = "2022.1.0";
|
||||
public static final String VERSION = "2022.2.0";
|
||||
public static final int VERSION_NUMBER = 202201000;
|
||||
|
||||
private static boolean loaded = false;
|
||||
|
Loading…
Reference in New Issue
Block a user