What is a seller when it comes to java?

What it is? Most of the information I could find this code (from http://sanjaal.com/java/tag/find-java-vendor/ )

public class GetJavaVersionAndVendor { public static void main(String args []) { String version=System.getProperty("java.version"); String vendor=System.getProperty("java.vendor"); System.out.println("Java Version Is: "+version); System.out.println("Java Vendor Is: "+vendor); } } 

This code gave me the name "Oracle Corporation", which I think is the developer of the version of Java that I just installed.

I also learned that properties listed as "Sun Microsystems Inc" have been renamed to "Oracle Corporation." Thus, I am assuming that this "provider" has a properties file. It is right?

+7
java
source share
5 answers

The provider is only the creator / maintainer of the JVM. Sun was bought by Oracle a couple of years ago, so the Sun JVM has more or less gained a reputation as an Oracle JVM. There are many different JVM implementations. Each of them must follow the JVM Spec . Take a look at the full JVM List

+10
source share

Provider means JVM implementer, it is Oracle (or) IBM JVM / JRE (or) Some others. Each of them has its own implementation of the JVM.

Example:

 java.vendor = Sun Microsystems Inc. java.vendor.url = http://java.sun.com/ 
+9
source share

A JVM can be developed by various companies if it follows the Java Virtual Machine Specification . You can even make your own implementation if you want to read the specification. The "Oracle Corporation" you saw shows that Oracle designed your current JVM. Various companies create their own JVMs if they are not satisfied with Oracle. For example, a custom JVM should still run Java code correctly, but may offer some advanced security.

+3
source share

From oracle javatutorial

"java.vendor": JRE provider name

The provider may be Oracle, IBM, or others.

+1
source share

You can simply run the command from the command line to get the details of java.vendor

 java -XshowSettings:properties -version 

or you can refer to the link below for more information on Java properties

https://www.applicationproductionsupport.com/2019/05/how-to-get-java-vendor-information-and.html

0
source share

All Articles