On Sun, 2019-09-22 at 16:06 +0300, Moshe Zuisman wrote: > Hi. > I need to build open JDK jdk8u 222 > <https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/tag/jdk8u222-b10> > . > I know that I can download precompiled binary distro of this version. But I > need to compile it at our site. > Question is - how can I get source of it? > I am going to : > https://hg.openjdk.java.net/jdk8u/jdk8u/tags then to jdk8u222-ga > <https://hg.openjdk.java.net/jdk8u/jdk8u/rev/eeeabadc6bf0> > and download zip file with source directory. > Then perform "get_sources.sh" and build it... > When I perform java -version > I get:: > [jdkbuild@vl-tlv-ctm-dv7j jdk8u-eeeabadc6bf0]$ > jdk8u/build/linux-x86_64-normal-server-release/images/j2re-image/bin/java > -version > openjdk version "1.8.0-internal" > OpenJDK Runtime Environment (build > 1.8.0-internal-jdkbuild_2019_09_22_17_42-b00) > OpenJDK 64-Bit Server VM (build 25.71-b00, mixed mode) > > and not something like: openjdk version "1.8.0-b222" > that I get if I download binary distro from AdoptOpenJDK site... > What am I doing wrong?
Like David said, you'd need to configure the build properly so as to pass the right flags. For inspiration consider these: https://github.com/AdoptOpenJDK/openjdk8-upstream-binaries/blob/master/build-openjdk8.sh#L45 Thanks, Severin