Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What is the source code compilation of JDK11?

Shulou Source: shulou.com Published: 2022-06-02 01:35:07 10月04日 Update

What is the source code compilation of JDK11? in view of this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.

Installation dependency

Because different versions of the source code require different dependencies and steps, it is strongly recommended to open building.html to take a look.

Basically, prepare some basic conditions from building.html#boot-jdk-requirements, and install all the required dependencies according to the above command.

What must be prepared:

At least one lower version of jdk

Here our source code is jdk11, in principle, we want to use 10 as bootjdk, but by debugging the log output, we can choose one of 10 and 11

Conduct Running Configure

Here, in order to debug, we choose slowdebug, which has the most debugging information, and then add the parameter of boot-jdk, and there is also an invisible pit-- disable-warnings-as-errors, otherwise the configuration shows to be successful, and make will not be able to go down due to warning.

Execute the configured command:

Bash configure-with-debug-level=slowdebug-with-boot-jdk=/Users/lixiang/soft/jdk-11.0.2.jdk/Contents/Home-disable-warnings-as-errors

When the following is output, the configuration is successful

Make construction

We use make images to build jdk images. Other options, such as hotspot, docs,test-image, etc., can refer to the above building.html documentation.

When you see this output, the build is complete.

Finally, in the build directory, you can see the jdk you built.

You can see the built version information using java-version

On the JDK11 source code compilation is what kind of questions to share the answer here, I hope the above content can be of some help to you, if you still have a lot of doubts unsolved, you can follow the industry information channel to learn more related knowledge.

Tags: Source code version problem output configuration compilation different success information content commands that is more prepare help answer easy easy principles parameters Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Apple NVidia MySQL Huawei