Self attach fails on macOS / Eclipse Temurin
Markus Heiden
markus at markusheiden.de
Sat Oct 15 11:32:04 UTC 2022
Hi,
I am using jol-core under macOS 12.6 with Eclipse Temurin 19
-Djdk.attach.allowAttachSelf -Djol.tryWithSudo=true and it is not able
to attach itself:
WARNING: Unable to attach Serviceability Agent. Unable to attach even
with escalated privileges: sudo: a terminal is required to read the
password; either use the -S option to read from standard input or
configure an askpass helper
sudo: a password is required
When manuall executing SenseAccessMain sun.jvm.hotspot.runtime.VM cannot
be found and it thus exits with code 1:
java.lang.ClassNotFoundException: sun.jvm.hotspot.runtime.VM
Am I missing some point or do I really need to start my app as root?
Thanks,
Markus
More information about the jol-dev
mailing list