![]() ![]() The desired method can be debugged later. ![]() $1 = Īs you can see, the breakpoint was successfully hit on the Java initialization code. src/java.base/share/native/libjli/java.c:393ģ94 JavaMainArgs *args = (JavaMainArgs * )_args Thread 2 "java" hit Breakpoint 1, JavaMain ( _args =0x0 ) at. Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Starting program: /home/ubuntu/jdk11u-113c646a33d2/build/linux-x86_64-normal-server-slowdebug/jdk/bin/java The program being debugged has been started already. _pthread_clockjoin_ex ( threadid =140260516488960, thread_return =0x7ffcefea4328, clockid =,Ībstime =, block = ) at pthread_join_common.c:145ġ45 pthread_join_common.c: No such file or directory.Īdd a breakpoint, here I choose the source code implementation of mainġ 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Type "apropos word" to search for commands related to "word".Īttaching to process 12339 Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Type "show configuration" for configuration details.įor bug reporting instructions, please see:įind the GDB manual and other documentation resources online at: This GDB was configured as "x86_64-linux-gnu". Type "show copying" and "show warranty" for details. There is NO WARRANTY, to the extent permitted by law. This is free software: you are free to change and redistribute it. License GPLv3+: GNU GPL version 3 or later to compile Java 11 you need to have at least Java 10 and later installed on your computer.ĭownload link: AdoptOpenJDK - Open source, prebuilt OpenJDK binaries ![]() To compile Java, you need N-1 version of Java. openJdk 11 only supports VS 2017 version of c++, OpenJdk 15 source code is compiled to support VS 2019. ![]() When installing, in the right column of Desktop Development with C++, check the box to install MSVC v141-VS 2017 C++.Now the new version of OpenJdk source code has solved this problem. For the old version of openJdk source code, choose English for the language package, not Chinese, otherwise the compilation will fail.installation directory, do not have spaces, otherwise you have to use fsutil for short path conversion, see error resolution for details.To install Visual Studio 2019 Community version, select the component Desktop Development with C++ for the tools component. The gcc version on windows requires the c++ compiler in vs to be selected. \setup-x86_64.exe -q -P autoconf -P make -P unzip -P zip -P gdb It is recommended to install Ubuntu 20.04 LTS for this version. Note: Only one of WSL and Cygwin needs to be installed Compiling with WSL Installing WSLįirst install WSL, see the official Microsoft documentation: Installing WSL on Windows 10 | Microsoft Docs for a detailed installation tutorial. I recommend using WSL, but using Cygwin is also described in the article, if anyone needs it. There are 2 optional tools for compiling openJdk source code, one using Cygwin and the other using WSL. The source code of Openjdk 11 is stored on the URL and can be downloaded by clicking on the zip button on the left to download the source code zip file at the following address: /jdk-updates/jdk11u/archive/tip.zipĪfter downloading, the size is 189M, after unzipping, the size is 600M. Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.A long time ago, I wanted to compile the source code of java on windows, and recently I have been trying, and I have tried many methods and encountered many problems.įinally, I compile the process of difficulties and solutions encountered in the record, I hope to help those who come later. The problem solvers who create careers with code. LinkedIn YouTube Twitter Facebook Products ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |