16 lines
354 B
Markdown
16 lines
354 B
Markdown
|
# Agent
|
||
|
|
||
|
### Compile the agent as JAR
|
||
|
|
||
|
```shell
|
||
|
cd agent/src
|
||
|
find . -name '*.java' -print -exec javac -d ../../out/production/agent \{\} \;
|
||
|
cd ..
|
||
|
jar cfm agent.jar manifest.txt -C ../out/production/agent .
|
||
|
```
|
||
|
|
||
|
### Run application with agent
|
||
|
|
||
|
```shell
|
||
|
java -javaagent:agent/agent.jar=hello -cp out/production/application ch.usi.inf.sp.dbi.Application
|
||
|
```
|