distinguishing my jdk derivative by setting java_runtime_name

Stanislav Baiduzhyi sbaiduzh at redhat.com
Tue Jun 16 10:46:27 UTC 2015

On 19/05/15 01:31, David Holmes wrote:
> On 19/05/2015 6:19 AM, Brian Toal wrote:
>> I'd like to be able to distinguish my openjdk build from others, by
>> setting java_runtime_name to something that signifies my openjdk
>> derivative.  Is it possible to set java_runtime_name that's used
>> in .//jdk/src/share/classes/sun/misc/Version.java.template via configure?
> I think you just edit common/autoconf/version-numbers
> David
>> How do others typically do this?

I've been hunting all the refernces quite some time now, so here is what 
I've found so far:

1. Change vendor in jdk/src/share/native/java/lang/System.c . I was not 
able to do that with make options, so went the hard way and made a patch 
for myself.

2. Configure with --with-user-release-suffix="$USER_SUFFIX". That will 
affect output of 'java -version'.

3. Use make variables, that will affect the rest of system properties:

If you will find more options to change - please post here as well.

More information about the build-dev mailing list