How can I find the name of currently running java virtual machine name? I want to get it from java API.
Thanks
Since you didn't really specify what you are looking for, take a look at these System Properties:
"java.vm.name"
"java.home"
"java.version"
"java.vendor"
"java.specification.vendor"
Like this:
System.out.println(System.getProperty("java.vm.name"));
System.out.println(System.getProperty("java.home"));
System.out.println(System.getProperty("java.vendor"));
System.out.println(System.getProperty("java.version"));
System.out.println(System.getProperty("java.specification.vendor"));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With