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.
You can now find the Java version and vendor under the System Properties tab.
The primary reference Java VM implementation is HotSpot, produced by Oracle Corporation and many other big and medium-sized companies (e.g. IBM, Redhat, Microsoft, Azul, SAP).
JDK vendors are companies who produce a version of the Java Development Kit. Gone are the days where we used to have just a single version by Oracle, we've now got multiple versions.
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.
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