Comments (6)
3rd party JDKs and non-Oracle built OpenJDK distributions set Vendor to the their own name, as they are the vendor (or supplier) of those distributions. OpenJDK has always supported defining the vendor, and now also has a built script setting for it (--with-vendor-name
).
As for authoritative text, the Javadoc for System::getProperties is probably the closest:
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/System.html#getProperties()
Which specifies that "java.vendor" is the "Java Runtime Environment vendor" - which in the Corretto case would the Amazon.
In this new Java landscape, where we are likely to see more vendors applying their own set of patches on top of the openjdk source, being able to easily identify which vendor your application is running on can become important.
Some example below for other distributions:
IBM SDK 7.0 SR2 FP10:
java.vendor = IBM Corporation
java.vendor.url = http://www.ibm.com/
java.vm.name = IBM J9 VM
java.vm.vendor = IBM Corporation
java.vm.version = 2.7
IBM SDK 8.0 SR4 FP10:
java.vendor = IBM Corporation
java.vendor.url = http://www.ibm.com/
java.vm.name = IBM J9 VM
java.vm.vendor = IBM Corporation
java.vm.version = 2.8
Oracle OpenJDK 11.0.1:
java.vendor = Oracle Corporation
java.vendor.url = http://java.oracle.com/
java.vendor.url.bug = http://bugreport.java.com/bugreport/
java.vendor.version = 18.9
java.vm.name = OpenJDK 64-Bit Server VM
java.vm.vendor = Oracle Corporation
java.vm.version = 11.0.1+13
Oracle JVM 9.0.4:
java.vendor = Oracle Corporation
java.vendor.url = http://java.oracle.com/
java.vendor.url.bug = http://bugreport.java.com/bugreport/
java.vm.name = Java HotSpot(TM) 64-Bit Server VM
java.vm.vendor = Oracle Corporation
java.vm.version = 9.0.4+11
Azul Zulu 11.0.1:
java.vendor = Azul Systems, Inc.
java.vendor.url = http://www.azulsystems.com/
java.vendor.url.bug = http://www.azulsystems.com/support/
java.vendor.version = Zulu11.2+3
java.vm.name = OpenJDK 64-Bit Server VM
java.vm.vendor = Azul Systems, Inc.
java.vm.version = 11.0.1+13-LTS
Azul Zulu 8.0.192:
java.vendor = Azul Systems, Inc.
java.vendor.url = http://www.azulsystems.com/
java.vendor.url.bug = http://www.azulsystems.com/support/
java.vm.name = OpenJDK 64-Bit Server VM
java.vm.vendor = Azul Systems, Inc.
java.vm.version = 25.192-b01
AdoptOpenJDK 11 with HotSpot:
java.vendor = AdoptOpenJDK
java.vendor.url = https://adoptopenjdk.net/
java.vendor.url.bug = http://bugreport.java.com/bugreport/
java.vendor.version = AdoptOpenJDK
java.vm.name = OpenJDK 64-Bit Server VM
java.vm.vendor = AdoptOpenJDK
java.vm.version = 11.0.1+13
AdoptOpenJDK 11.0.1 with OpenJ9:
java.vendor = Eclipse OpenJ9
java.vendor.url = http://www.eclipse.org/openj9
java.vendor.version = AdoptOpenJDK
java.vm.name = Eclipse OpenJ9 VM
java.vm.vendor = Eclipse OpenJ9
java.vm.version = openj9-0.11.0
AdoptOpenJDK 8u192 with OpenJ9:
java.vendor = Eclipse OpenJ9
java.vendor.url = http://www.eclipse.org/openj9
java.vm.name = Eclipse OpenJ9 VM
java.vm.vendor = Eclipse OpenJ9
java.vm.version = master-61a34f6be
SapMachine 11.0.1:
java.vendor = SAP SE
java.vendor.url = https://sapmachine.io
java.vendor.url.bug = https://github.com/SAP/SapMachine/issues/new
java.vm.name = OpenJDK 64-Bit Server VM
java.vm.vendor = SAP SE
java.vm.version = 11.0.1+13-LTS-sapmachine-0
from corretto-8.
Thanks @Maldivia for the detailed response to this. This, along with some additional feedback our team has sought from the OpenJDK community (such as http://mail.openjdk.java.net/pipermail/core-libs-dev/2018-December/057457.html and http://mail.openjdk.java.net/pipermail/core-libs-dev/2018-December/057460.html) prompts us to re-open the issue and work on a plan.
from corretto-8.
The latest version of Corretto 8 (8u202 Release Candidate) now has the following:
java.vendor = Amazon.com Inc.
java.vendor.url = https://aws.amazon.com/corretto/
java.vendor.url.bug = https://github.com/corretto/corretto-8/issues/
java.vm.name = OpenJDK 64-Bit Server VM
java.vm.vendor = Amazon.com Inc.
java.vm.version = 25.202-b08
Thanks for the feedback
from corretto-8.
I'm assigning this to Bernd for further investigation. Thanks for the report.
from corretto-8.
Thank you for reporting this. We looked into it and could not find a clear definition of what the values for these properties should be, or what constitutes a βvendorβ in this context, nor is there a standard vendor string applied across different OpenJDK distributions. If you know an authoritative text on this, please point us at it. We will consider changing these values once we have better information on their meaning.
from corretto-8.
Would it make sense to include Corretto
in the java.vm.name
property, to properly indicate the distribution (similar to how IBM and OpenJ9 do it)?
Something like java.vm.name=Corretto OpenJDK 64-Bit Server VM
?
from corretto-8.
Related Issues (20)
- VM options documentation HOT 2
- Environment.getBrowserType(): unknown browser// iACS using Corretto HOT 1
- Fonts with contextual alternates are not correct rendered HOT 9
- webview HOT 1
- unable to connect to JVM via JMX HOT 2
- SSL handshake failing with sni disabled for newer java 8 versions HOT 1
- # A fatal error has been detected by the Java Runtime Environment: HOT 5
- tzdata version update missing from changelog HOT 1
- JVM paused for a long time when trying to reach safepoint HOT 2
- Problem with servlet application running on batch service. (org.springframework.batch.core) HOT 2
- Correto 8 usage error HOT 1
- JVM crash HOT 4
- java.lang.NoClassDefFoundError: sun.font.SunFontManager exception when moving from oracle jdk 8 to corretto jdk 1.8.0_362. HOT 9
- A fatal error has been detected by the Java Runtime Environment HOT 7
- A fatal error has been detected by the Java Runtime Environment HOT 3
- Java Corretto on workstations - Enterprise configuration HOT 1
- corretto version reports vulnerabilities in nessus scan. HOT 1
- Visual Studio C++ Redistributable has known EOL HOT 2
- crash during pyspak runing HOT 1
- Maven needs JAVA_HOME set to: /usr/lib/jvm/java-1.8.0-amazon-corretto/jre HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from corretto-8.