How to retrieve Java vendor information
java
Solution
Note: The following will work for the Oracle JVM - not tested on others. (To get details on non-standard options execute `java -X`)
You can use the non-standard `-XshowSettings` flag to show all settings, or alternatively `-XshowSettings:properties` to show all property settings.
So for example if you execute the following command:
java -XshowSettings:properties -version
This will show you all properties one of which is `java.vendor`. Not sure if it is possible to get it to output just a single property though.
Problem
How can I retrieve Java vendor information without having to compile and run following script: ``` import java.util.Properties; public class test { public static void main(String args[]) { Properties prop = System.getProperties(); System.out.println ("JVM Vendor : " + prop.getProperty("java.vendor") ); } } ``` I couldn't find it in command line options.