formatting, additional details on how to run the app
This commit is contained in:
parent
a4a03c4790
commit
9dc5d75a16
@ -15,3 +15,13 @@ This module contains articles about working with the Java Virtual Machine (JVM).
|
|||||||
- [What Causes java.lang.OutOfMemoryError: unable to create new native thread](https://www.baeldung.com/java-outofmemoryerror-unable-to-create-new-native-thread)
|
- [What Causes java.lang.OutOfMemoryError: unable to create new native thread](https://www.baeldung.com/java-outofmemoryerror-unable-to-create-new-native-thread)
|
||||||
- [View Bytecode of a Class File in Java](https://www.baeldung.com/java-class-view-bytecode)
|
- [View Bytecode of a Class File in Java](https://www.baeldung.com/java-class-view-bytecode)
|
||||||
- More articles: [[next -->]](/core-java-modules/core-java-jvm-2)
|
- More articles: [[next -->]](/core-java-modules/core-java-jvm-2)
|
||||||
|
|
||||||
|
|
||||||
|
To run the code for the Instrumentation: https://www.baeldung.com/java-instrumentation article:
|
||||||
|
1- build the module
|
||||||
|
2- run the module 3 times to build the 3 jars:
|
||||||
|
mvn install -PbuildAgentLoader
|
||||||
|
mvn install -PbuildApplication
|
||||||
|
mvn install -PbuildAgent
|
||||||
|
3- update the commands in the article with the exact names of the jars generated in the target folder
|
||||||
|
4- update the path in the AgentLoader class with the path of the agent on your system
|
@ -92,7 +92,7 @@
|
|||||||
<archive>
|
<archive>
|
||||||
<manifest>
|
<manifest>
|
||||||
<addClasspath>true</addClasspath>
|
<addClasspath>true</addClasspath>
|
||||||
<mainClass>com.baeldung.instrumentation.application.Launcher</mainClass>
|
<mainClass>com.baeldung.instrumentation.application.Launcher</mainClass>
|
||||||
</manifest>
|
</manifest>
|
||||||
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
|
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
|
||||||
</archive>
|
</archive>
|
||||||
@ -163,7 +163,7 @@
|
|||||||
<archive>
|
<archive>
|
||||||
<manifest>
|
<manifest>
|
||||||
<addClasspath>true</addClasspath>
|
<addClasspath>true</addClasspath>
|
||||||
<mainClass>com.baeldung.instrumentation.application.Launcher</mainClass>
|
<mainClass>com.baeldung.instrumentation.application.Launcher</mainClass>
|
||||||
</manifest>
|
</manifest>
|
||||||
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
|
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
|
||||||
</archive>
|
</archive>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user