jol-cli and external class path
Aleksey Shipilev
aleksey.shipilev at oracle.com
Thu May 14 09:16:15 UTC 2015
On 05/14/2015 08:02 AM, Bernd Eckenfels wrote:
> Thanks for the quick fix. I compiled 0.4-SNAPSHOT (49:1ae450a74f19) in
> Maven 3.2.5 / Java 8 / Win64 cleanly.
>
> It also works as advertised, I can add relativ or absolute directories
> or JAR files to the external -cp, and it can inspect classes from the
> external CP as well as internal (as well as [C syntax). This is better to use.
Thanks for testing!
> (the jol-cli.jar is not names jol-cli-full.jar, is that expected?)
Yeah, locally-built uberjar is "jol-cli.jar", but it gets published to
Central with "full" classifier.
> I intuitively used "java -jar jol-cli.jar -cp ... internals test.Test"
> first. From the help and source it is clear that it does not work and I
> guess it is acceptable. (On the other hand, conceptionally -cp would be
> a "global" option, independend of the mode?
It's not a global option. Some modes do not care about classpath at all.
> An unknown mode (-cp) should maybe also show the Usage: help in
> addition to the mode list:
Yes, done:
https://bugs.openjdk.java.net/browse/CODETOOLS-7901423
Thanks,
-Aleksey.
More information about the jol-dev
mailing list