Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the source code compilation of JDK11?

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report