How to detect that a VM was started with --enable-preview ?

Seán Coffey sean.coffey at
Tue Oct 9 15:27:41 UTC 2018

would `jcmd <pid> | grep jvm_args:` help ? or `jcmd <pid> 


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()

More information about the core-libs-dev mailing list