would `jcmd <pid> VM.info | grep jvm_args:` help ? or `jcmd <pid> VM.command_line`

regards,
Sean.

On 09/10/2018 16:20, Remi Forax wrote:
Hi all,
it seems that there is no simple way* to detect if a VM is started with 
--enable-preview or not ?

Rémi
* apart using JMX to sniff the VM command line with 
ManagementFactory.getRuntimeMXBean().getInputArguments()

Reply via email to