windows compile openjdk8

Windows compilation openjdk8 can find several articles in Baidu, it is relatively easy, you can refer to (read this article first, and then operate according to this address)

https://blog.csdn.net/lpwstr/article/details/78840188 (priority)

You can also refer to some error correction methods of https://blog.csdn.net/lpwstr/article/details/78840188#comments address,

Pay special attention to the fact that the directory where vs2010 is installed cannot have spaces, otherwise unexpected errors will occur under mingw. Even if you choose to install such as c:\\2010, the windows sdks directory file will also be installed in the Program Files directory. This environment variable is also Will be used, disgusting, and needs to be changed

Create a link using the following statement

mklink /j mssdk "C:\Program Files (x86)\Microsoft SDKs" 

At the same time, you need to change the VCVarsQueryRegistry.bat file in the C:\vs2010\Common7\Tools directory, and change @SET "WindowsSdkDir=%%k" to @SET "WindowsSdkDir=C:\mssdk\Windows\v7.0A\",

This set of tricks can't be searched on the whole network, hahaha, share it with people who have encountered pitfalls

I will also share what I have compiled. If you don't want to be too troublesome or encounter all kinds of weird problems, you can use this first to ensure the original flavor. I have been watching it for a long time after compiling. Tell the truth,,, the code project The amount is not small, and it is disgusting that some temporary variables cannot see the value when debugging. . . , Netbeans under linux can not see. . . But you can probably get some ideas

My compiled path is in the D:\JDK\openjdk8 directory under D:\JDK\. It is recommended to put it in this directory. The vs2010 directory is under C:\vs2010. The sln file opening address of vs2010 is D:\JDK\openjdk8\hotspot\build\vs-i486, jvm.sln. Why only the jvm directory does not have the source code corresponding to java.exe? In fact, for windows, the official only provides the sln file of jvm, which can be used when opened, and java.exe is probably just the first entry for collecting parameters. Including parsing java, initializing memory, running, etc. are all carried out in the jvm. If you understand the jvm-related source code, you can understand roughly 97% of the java source code.

The compiled and debugged jvm source network disk address is:

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324889213&siteId=291194637