Port of schuchert.wikispaces.com


AnExampleJavaAgent

AnExampleJavaAgent

«– back

Smoke Test

java -javaagent:Registrar.jar -Dschuchert.ClassFileTransformer=schuchert.agent.NullClassFileTransformer schuchert.agent.Main
Congratulations, everything seems to be working

If you see anything else, check here

Contents of Jar

The Registrar.jar file contains several things, including source and class files and even a JUnit 4 test. IF you want to actually run that test, you’ll need to have the following in your class path:

If you want to verify that you can also run a Java Application, do the following:

Recreate Registrar.jar

«– back


Comments

" Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.