<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p>Hello Anil,</p>
<p>Building in a VM on a laptop should be doable, but given how
resource intensive the JDK build is, you could run into problems
like you describe. You are most likely to get the best build
performance running natively on the machine and OS you have, so my
recommendation is to build for Windows in your case. If you still
prefer to build for Linux, I think the best option is to use WSL.
See doc/building.md for instructions on how to build for Linux in
WSL. To build for Windows, I recommend installing Cygwin as the
most straightforward and well tested option for a POSIX support
layer on Windows. Once installed, you won't need to run any
Windows commands as Cygwin emulates a Linux/Unix environment.
Again see doc/building.md for instructions on how to install a
build environment on Windows.</p>
<p>/Erik<br>
</p>
<div class="moz-cite-prefix">On 6/27/24 04:51, Anil wrote:<br>
</div>
<blockquote type="cite" cite="mid:CAG68Eh2u50Q2PpjurEtxaMFPNjjvtocQUKqUjXyToh5wgWP2FA@mail.gmail.com">
<div dir="auto">I want to try out a small contribution to the JDK
and want to build the JDK first.
<div dir="auto">I have a Windows 11 laptop. </div>
<div dir="auto"><br>
</div>
<div dir="auto">I am not comfortable with the Windows commands
and someone mentioned in this forum that most of the building
is done on Linux.
<div dir="auto">So I installed VirtualBox 7.0.18 and Ubuntu
24.04. however I was getting black screens and freezing. I
downgraded the Ubuntu to 222.04 and still got black screens.
I don't know why this is happening.</div>
<div dir="auto">Any advice appreciated. </div>
<div dir="auto">Anil</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Jun 18, 2024, 7:25 PM
Anil <<a href="mailto:1dropaflame@gmail.com" moz-do-not-send="true" class="moz-txt-link-freetext">1dropaflame@gmail.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hello,
<div>I want to try out a small contribution to the JDK and
wanted to build the JDK first, </div>
<div>before I change the code.</div>
<div>I forked and cloned the jdk following the instructions
at <a href="https://openjdk.org/guide/#cloning-the-jdk" target="_blank" rel="noreferrer" moz-do-not-send="true">The
OpenJDK Developers' Guide – OpenJDK Developers’ Guide</a></div>
<div><br>
</div>
<div>I am on Windows 11.</div>
<div>These instructions are given on the page but I am
unsure which of these to execute since I have already
forked and cloned the git repo</div>
<div><br>
</div>
<div>
<pre style="font-family:"DejaVu Sans Mono","Bitstream Vera Sans Mono","Luxi Mono","Courier New",monospace;font-size:smaller;margin-top:1em;color:rgb(0,0,0)"><code style="font-family:"DejaVu Sans Mono","Bitstream Vera Sans Mono","Luxi Mono","Courier New",monospace;border:1px solid rgb(204,204,204);background:rgb(252,252,255);display:block;padding:0.5em;margin:0em">$ wget <a href="https://download.java.net/java/GA/jdk16/7863447f0ab643c585b9bdebf67c69db/36/GPL/openjdk-16_linux-x64_bin.tar.gz" target="_blank" rel="noreferrer" moz-do-not-send="true" class="moz-txt-link-freetext">https://download.java.net/java/GA/jdk16/7863447f0ab643c585b9bdebf67c69db/36/GPL/openjdk-16_linux-x64_bin.tar.gz</a>
$ tar xzf openjdk-16_linux-x64_bin.tar.gz
$ sudo apt-get install autoconf zip make gcc g++ libx11-dev libxext-dev libxrender-dev libxrandr-dev libxtst-dev libxt-dev libcups2-dev libfontconfig1-dev libasound2-dev
$ cd jdk
$ sh ./configure --with-boot-jdk=$HOME/jdk-16/
$ make images</code></pre>
<br>
</div>
<div>Do I still need to do the wget?</div>
<div>Also, I wondered if I should use book jdk-17 instead of
jdk-16 as in the instructions above.</div>
<div>thanks,</div>
<div>Anil</div>
<div><br>
</div>
</div>
</blockquote>
</div>
</blockquote>
</body>
</html>