jol-cli and external class path
Bernd Eckenfels
ecki at zusammenkunft.net
Tue May 12 23:42:19 UTC 2015
Hello,
I noticed that on the JOL homepage the jol-cli samples all use the -jar
executable form. With this it is not possible to specify additional
classes on the class path.
Is there a way to do it, or is it allowed/expected to use java -cp in
this case? Should this be documented?
I noticed there is some pre-main instrumentation in the JAR, so do I
need to specify an -javaagent as well? The tests I tried worked without:
java -cp target\classes;jol-cli-full.jar org.openjdk.jol.Main
internals test.MyClass
From JMH I know that is imortant to have the benchmark.jar, but JOL
looks less demanding in that regard.
Gruss
Bernd
PS: I was digging into this because I wanted to give some help on a SO
answer, so thats why I thought using the -cli variant might be easier
to explain. http://stackoverflow.com/a/30203163/13189
More information about the jol-dev
mailing list