sp-06/README.md

16 lines
354 B
Markdown
Raw Normal View History

2023-12-13 10:41:52 +00:00
# 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
```