You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Update `JAVA_OPTS` for Windows in `setenv.bat` File
49
-
50
-
1. Navigate to the `bin` directory of your Apache Karaf installation.
51
-
2. Open the `setenv.bat` file for editing.
52
-
3. Add the paths of the downloaded agents under the `JAVA_OPTS` section. For example:
53
-
54
-
```bat
55
-
set JAVA_OPTS=-javaagent:/path/to/io.keploy.agent-2.0.1.jar
56
-
set JAVA_OPTS=%JAVA_OPTS% -javaagent:/path/to/org.jacoco.agent-0.8.12-runtime.jar=address=*,port=36320,destfile=jacoco-it.exec,output=tcpserver
57
-
```
58
-
59
-
### Set Environment Variables as Java System Properties on Windows
60
-
61
-
On Windows, all environment variables should be passed as `-D` system properties for Java. Update the `JAVA_OPTS` section in `setenv.bat` to include the required variables. For example:
62
-
63
-
```bat
64
-
set JAVA_OPTS=%JAVA_OPTS% -DAPI_KEY=xRp5nyiQ+B6yltBUpw==
65
-
set JAVA_OPTS=%JAVA_OPTS% -DKEPLOY_MODE=RECORD
66
-
set JAVA_OPTS=%JAVA_OPTS% -javaagent:/path/to/org.jacoco.agent-0.8.12-runtime.jar=address=*,port=36320,destfile=jacoco-it.exec,output=tcpserver
67
-
```
68
-
69
60
Replace the placeholder values with actual paths and keys as needed.
0 commit comments