208 <blockquote> |
212 <blockquote> |
209 We won't be listing all the possible environments, but |
213 We won't be listing all the possible environments, but |
210 we will try to provide what information we have available to us. |
214 we will try to provide what information we have available to us. |
211 </blockquote> |
215 </blockquote> |
212 <!-- ------------------------------------------------------ --> |
216 <!-- ------------------------------------------------------ --> |
213 <h3><a name="fedora">Fedora 9</a></h3> |
217 <h3><a name="fedora">Fedora</a></h3> |
214 <blockquote> |
218 <blockquote> |
215 After installing |
219 <h4>Fedora 9</h4> |
216 <a href="http://www.fedoraproject.org/">Fedora 9</a> |
220 <p> |
217 you need to make sure you have |
221 <blockquote> |
218 the "Software Development" bundle installed, plus the |
222 After installing <a href="http://fedoraproject.org">Fedora</a> 9 |
219 following packages: |
223 you need to install several build dependencies. The simplest |
220 <blockquote> |
224 way to do it is to execute the following commands as user |
221 <ul> |
225 <tt>root</tt>: |
222 <li>cups devel: Cups Development Package</li> |
226 <p/> |
223 <li>freetype 2.3+ devel: Freetype 2.3 Development Package</li> |
227 <code>yum-builddep java-openjdk</code> |
224 <li>hg: Mercurial, if you need to clone or manage source repositories</li> |
228 <p/> |
225 <li>ksh: May be needed when using <tt>webrev</tt></li> |
229 <code>yum install gcc gcc-c++</code> |
226 </ul> |
230 <p/> |
227 </blockquote> |
231 In addition, it's necessary to set a few environment variables for the build: |
228 <p> |
232 |
229 Always a good idea to do a complete Software Update/Refresh |
233 <p/> |
230 after you get all the packages installed. |
234 <code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-openjdk</code> |
|
235 </blockquote> |
|
236 <h4>Fedora 10</h4> |
|
237 <p> |
|
238 <blockquote> |
|
239 After installing <a href="http://fedoraproject.org">Fedora</a> 10 |
|
240 you need to install several build dependencies. The simplest |
|
241 way to do it is to execute the following commands as user |
|
242 <tt>root</tt>: |
|
243 <p/> |
|
244 <code>yum-builddep java-1.6.0-openjdk</code> |
|
245 <p/> |
|
246 <code>yum install gcc gcc-c++</code> |
|
247 <p/> |
|
248 In addition, it's necessary to set a few environment variables for the build: |
|
249 |
|
250 <p/> |
|
251 <code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-openjdk</code> |
|
252 </blockquote> |
|
253 <h4>Fedora 11</h4> |
|
254 <p> |
|
255 <blockquote> |
|
256 After installing <a href="http://fedoraproject.org">Fedora</a> 11 |
|
257 you need to install several build dependencies. The simplest |
|
258 way to do it is to execute the following commands as user |
|
259 <tt>root</tt>: |
|
260 <p/> |
|
261 <code>yum-builddep java-1.6.0-openjdk</code> |
|
262 <p/> |
|
263 <code>yum install gcc gcc-c++</code> |
|
264 <p/> |
|
265 In addition, it's necessary to set a few environment variables for the build: |
|
266 |
|
267 <p/> |
|
268 <code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-openjdk</code> |
|
269 </blockquote> |
231 </blockquote> |
270 </blockquote> |
232 <!-- ------------------------------------------------------ --> |
271 <!-- ------------------------------------------------------ --> |
233 <h3><a name="centos">CentOS 5.2</a></h3> |
272 <h3><a name="centos">CentOS 5.2</a></h3> |
234 <blockquote> |
273 <blockquote> |
235 After installing |
274 After installing |
268 Mercurial packages could not be found easily, but a Google |
307 Mercurial packages could not be found easily, but a Google |
269 search should find ones, and they usually include Python if |
308 search should find ones, and they usually include Python if |
270 it's needed. |
309 it's needed. |
271 </blockquote> |
310 </blockquote> |
272 <!-- ------------------------------------------------------ --> |
311 <!-- ------------------------------------------------------ --> |
273 <h3><a name="ubuntu">Ubuntu</a></h3> |
312 <h3><a name="debian">Debian</a></h3> |
274 <blockquote> |
313 <blockquote> |
275 In addition to needing the Bootstrap JDK and the Binary Plugs, |
314 <h4>Debian 5.0 (Lenny)</h4> |
276 when building on Ubuntu you will need to |
315 <p> |
277 make sure certain packages are installed. |
316 <blockquote> |
278 In particular, certain X11 packages, make, m4, gawk, gcc 4, |
317 After installing <a href="http://debian.org">Debian</a> 5 |
279 binutils, cups, freetype |
318 you need to install several build dependencies. |
280 and alsa. |
319 The simplest way to install the build dependencies is to |
281 <!-- ------------------------------------------------------ --> |
320 execute the following commands as user <tt>root</tt>: |
282 <h4>Ubuntu 6.06</h4> |
321 <p/> |
283 <p> |
322 <code>aptitude build-dep openjdk-6</code> |
284 The following list of packages for Ubuntu 6.06 is a working set that |
323 <p/> |
285 does appear to work. |
324 <code>aptitude install openjdk-6-jdk libmotif-dev</code> |
286 <p> |
325 <p/> |
287 <b>Note that it's quite possible that some of these |
326 In addition, it's necessary to set a few environment variables for the build: |
288 packages are not required, so anyone discovering that some of the |
327 <p/> |
289 packages listed below are NOT required, |
328 <code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-6-openjdk</code> |
290 please let the |
329 </blockquote> |
291 OpenJDK |
330 </blockquote> |
292 team know.</b> |
331 <!-- ====================================================== --> |
293 <p> |
332 <h3><a name="ubuntu">Ubuntu</a></h3> |
294 All the packages below can be installed with the |
333 <blockquote> |
295 Synaptic Package manager provided with the base Ubuntu 6.06 release. |
334 <h4>Ubuntu 8.04</h4> |
296 <blockquote> |
335 <p> |
297 <ul> |
336 <blockquote> |
298 <li>binutils (2.16.1cvs20060117-1ubuntu2.1)</li> |
337 After installing <a href="http://ubuntu.org">Ubuntu</a> 8.04 |
299 <li>cpp (4:4.0.3-1)</li> |
338 you need to install several build dependencies. |
300 <li>cpp-4.0 (4.0.3-1ubuntu5)</li> |
339 <p/> |
301 <li>libfreetype6-dev</li> |
340 First, you need to enable the universe repository in the |
302 <li>g++ (4:4.0.3-1)</li> |
341 Software Sources application and reload the repository |
303 <li>g++-4.0 (4.0.3-1ubuntu5)</li> |
342 information. The Software Sources application is available |
304 <li>gawk (1:3.1.5-2build1)</li> |
343 under the System/Administration menu. |
305 <li>gcc (4:4.0.3-1)</li> |
344 <p/> |
306 <li>gcc-4.0 (4.0.3-1ubuntu5)</li> |
345 The simplest way to install the build dependencies is to |
307 <li>libasound2-dev (1.0.10-2ubuntu4)</li> |
346 execute the following commands: |
308 <li>libc6 (2.3.6-0ubuntu20) to 2.3.6-0ubuntu20.4</li> |
347 <p/> |
309 <li>libc6-dev (2.3.6-0ubuntu20.4)</li> |
348 <code>sudo aptitude build-dep openjdk-6</code> |
310 <li>libc6-i686 (2.3.6-0ubuntu20) to 2.3.6-0ubuntu20.4</li> |
349 <p/> |
311 <li>libcupsys2-dev (1.2.2-0ubuntu0.6.06)</li> |
350 <code>sudo aptitude install openjdk-6-jdk</code> |
312 <li>libgcrypt11-dev (1.2.2-1)</li> |
351 <p/> |
313 <li>libgnutls-dev (1.2.9-2ubuntu1.1)</li> |
352 In addition, it's necessary to set a few environment variables for the build: |
314 <li>libgnutls12 (1.2.9-2ubuntu1) to 1.2.9-2ubuntu1.1</li> |
353 <p/> |
315 <li>libgpg-error-dev (1.1-4)</li> |
354 <code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-6-openjdk</code> |
316 <li>libice-dev (2:1.0.0-0ubuntu2)</li> |
355 </blockquote> |
317 <li>liblockfile1 (1.06.1)</li> |
356 <h4>Ubuntu 8.10</h4> |
318 <li>libopencdk8-dev (0.5.7-2)</li> |
357 <p> |
319 <li>libpopt-dev (1.7-5)</li> |
358 <blockquote> |
320 <li>libsm-dev (2:1.0.0-0ubuntu2)</li> |
359 After installing <a href="http://ubuntu.org">Ubuntu</a> 8.10 |
321 <li>libstdc++6-4.0-dev (4.0.3-1ubuntu5)</li> |
360 you need to install several build dependencies. The simplest |
322 <li>libtasn1-2-dev (0.2.17-1ubuntu1)</li> |
361 way to do it is to execute the following commands: |
323 <li>libx11-dev (2:1.0.0-0ubuntu9)</li> |
362 <p/> |
324 <li>libxau-dev (1:1.0.0-0ubuntu4)</li> |
363 <code>sudo aptitude build-dep openjdk-6</code> |
325 <li>libxaw-headers (2:1.0.1-0ubuntu3)</li> |
364 <p/> |
326 <li>libxaw7-dev (2:1.0.1-0ubuntu3)</li> |
365 <code>sudo aptitude install openjdk-6-jdk</code> |
327 <li>libxdmcp-dev (1:1.0.0-0ubuntu2)</li> |
366 <p/> |
328 <li>libxext-dev (2:1.0.0-0ubuntu4)</li> |
367 In addition, it's necessary to set a few environment variables for the build: |
329 <li>libxi-dev (2:1.0.0-0ubuntu3) </li> |
368 <p/> |
330 <li>libxmu-dev (2:1.0.0-0ubuntu3)</li> |
369 <code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-6-openjdk</code> |
331 <li>libxmu-headers (2:1.0.0-0ubuntu3)</li> |
370 </blockquote> |
332 <li>libxmuu-dev (2:1.0.0-0ubuntu3)</li> |
371 <h4>Ubuntu 9.04</h4> |
333 <li>libxp-dev (6.8.2-11ubuntu2)</li> |
372 <p> |
334 <li>libxpm-dev (1:3.5.4.2-0ubuntu3)</li> |
373 <blockquote> |
335 <li>libxrandr-dev (1:1.1.0.2-0ubuntu4)</li> |
374 After installing <a href="http://ubuntu.org">Ubuntu</a> 9.04 |
336 <li>libxt-dev (1:1.0.0-0ubuntu3)</li> |
375 you need to install several build dependencies. The simplest |
337 <li>libxtrap-dev (2:1.0.0-0ubuntu2)</li> |
376 way to do it is to execute the following commands: |
338 <li>libxtst-dev (2:1.0.1-0ubuntu2)</li> |
377 <p/> |
339 <li>libxv-dev (2:1.0.1-0ubuntu3)</li> |
378 <code>sudo aptitude build-dep openjdk-6</code> |
340 <li>linux-kernel-headers (2.6.11.2-0ubuntu18)</li> |
379 <p/> |
341 <li>m4 (1.4.4-1)</li> |
380 <code>sudo aptitude install openjdk-6-jdk</code> |
342 <li>make (3.80+3.81.b4-1)</li> |
381 <p/> |
343 <li>ssl-cert (1.0.13)</li> |
382 In addition, it's necessary to set a few environment variables for the build: |
344 <li>x-dev (7.0.4-0ubuntu2)</li> |
383 <p/> |
345 <li>x11proto-core-dev (7.0.4-0ubuntu2)</li> |
384 <code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-6-openjdk</code> |
346 <li>x11proto-input-dev (1.3.2-0ubuntu2)</li> |
385 </blockquote> |
347 <li>x11proto-kb-dev (1.0.2-0ubuntu2)</li> |
386 </blockquote> |
348 <li>x11proto-randr-dev (1.1.2-0ubuntu2)</li> |
387 <!-- ====================================================== --> |
349 <li>x11proto-record-dev (1.13.2-0ubuntu2)</li> |
388 <h3><a name="opensuse">OpenSUSE</a></h3> |
350 <li>x11proto-trap-dev (3.4.3-0ubuntu2)</li> |
389 <blockquote> |
351 <li>x11proto-video-dev (2.2.2-0ubuntu2)</li> |
390 <h4>OpenSUSE 11.1</h4> |
352 <li>x11proto-xext-dev (7.0.2-0ubuntu2)</li> |
391 <p> |
353 <li>xlibs-dev (7.0.0-0ubuntu45)</li> |
392 <blockquote> |
354 <li>zlib1g-dev (1:1.2.3-6ubuntu4)</li> |
393 After installing <a href="http://opensuse.org">OpenSUSE</a> 11.1 |
355 </ul> |
394 you need to install several build dependencies. |
356 </blockquote> |
395 The simplest way to install the build dependencies is to |
357 <!-- ------------------------------------------------------ --> |
396 execute the following commands: |
358 <h4>Ubuntu 7.04</h4> |
397 <p/> |
359 <p> |
398 <code>sudo zypper source-install -d java-1_6_0-openjdk</code> |
360 Using the Synaptic Package Manager, download the following |
399 <p/> |
361 packages (double indented packages are automatically aquired |
400 <code>sudo zypper install make</code> |
362 due to package dependencies): |
401 <p/> |
363 <blockquote> |
402 In addition, it is necessary to set a few environment variables for the build: |
364 <ul> |
403 <p/> |
365 <li>build-essential</li> |
404 <code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-1.6.0-openjdk</code> |
366 <ul> |
405 <p/> |
367 <li>dpkg-dev</li> |
406 Finally, you need to unset the <code>JAVA_HOME</code> environment variable: |
368 <li>g++</li> |
407 <p/> |
369 <li>g++-4.1</li> |
408 <code>export -n JAVA_HOME</code> |
370 <li>libc6-dev</li> |
409 </blockquote> |
371 <li>libstdc++6.4.1-dev</li> |
410 </blockquote> |
372 <li>linux-libc-dev</li> |
411 <!-- ====================================================== --> |
373 </ul> |
412 <h3><a name="mandriva">Mandriva</a></h3> |
374 <li>gawk</li> |
413 <blockquote> |
375 <li>m4</li> |
414 <h4>Mandriva Linux One 2009 Spring</h4> |
376 <li>libasound2-dev</li> |
415 <p> |
377 <li>libcupsys2-dev</li> |
416 <blockquote> |
378 <ul> |
417 After installing <a href="http://mandriva.org">Mandriva</a> Linux One 2009 Spring |
379 <li>libgcrypt11-dev</li> |
418 you need to install several build dependencies. |
380 <li>lgnutls-dev</li> |
419 The simplest way to install the build dependencies is to |
381 <li>libgpg-error-dev</li> |
420 execute the following commands as user <tt>root</tt>: |
382 <li>liblzo-dev</li> |
421 <p/> |
383 <li>libopencdk8-dev</li> |
422 <code>urpmi java-1.6.0-openjdk-devel ant make gcc gcc-c++ freetype-devel zip unzip libcups2-devel libxrender1-devel libalsa2-devel libstc++-static-devel libxtst6-devel libxi-devel</code> |
384 <li>libpopt-dev</li> |
423 <p/> |
385 <li>libtasn1-3-dev</li> |
424 In addition, it is necessary to set a few environment variables for the build: |
386 <li>zlib1g-dev</li> |
425 <p/> |
387 </ul> |
426 <code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-1.6.0-openjdk</code> |
388 <li>sun-java6-jdk</li> |
427 </blockquote> |
389 <ul> |
428 </blockquote> |
390 <li>java-common</li> |
429 <!-- ====================================================== --> |
391 <li>libltdl3</li> |
430 <h3><a name="opensolaris">OpenSolaris</a></h3> |
392 <li>odbcinst1debian1</li> |
431 <blockquote> |
393 <li>sun-java6-bin</li> |
432 <h4>OpenSolaris 2009.06</h4> |
394 <li>sun-java6-jre</li> |
433 <p> |
395 <li>unixodbc</li> |
434 <blockquote> |
396 </ul> |
435 After installing <a href="http://opensolaris.org">OpenSolaris</a> 2009.06 |
397 <li>xlibs-dev</li> |
436 you need to install several build dependencies. |
398 <ul> |
437 The simplest way to install the build dependencies is to |
399 <li>(many)</li> |
438 execute the following commands: |
400 </ul> |
439 <p/> |
401 <li>x11proto-print-dev</li> |
440 <code>pfexec pkg install SUNWgmake SUNWj6dev SUNWant sunstudioexpress SUNWcups SUNWzip SUNWunzip SUNWxwhl SUNWxorg-headers SUNWaudh SUNWfreetype2</code> |
402 <li>libxaw7-dev</li> |
441 <p/> |
403 <ul> |
442 In addition, it is necessary to set a few environment variables for the build: |
404 <li>libxaw-headers</li> |
443 <p/> |
405 </ul> |
444 <code>export LANG=C ALT_COMPILER_PATH=/opt/SunStudioExpress/bin/ ALT_CUPS_HEADERS_PATH=/usr/include/</code> |
406 <li>libxp-dev</li> |
445 <p/> |
407 <li>libfreetype6-dev</li> |
446 Finally, you need to make sure that the build process can find the Sun Studio compilers: |
408 </ul> |
447 <p/> |
409 </blockquote> |
448 <code>export PATH=$PATH:/opt/SunStudioExpress/bin/</code> |
410 </blockquote> |
449 </blockquote> |
411 <!-- ------------------------------------------------------ --> |
450 </blockquote> |
|
451 <!-- ------------------------------------------------------ --> |
412 <hr> |
452 <hr> |
413 <h2><a name="directories">Source Directory Structure</a></h2> |
453 <h2><a name="directories">Source Directory Structure</a></h2> |
414 <blockquote> |
454 <blockquote> |
415 <p> |
455 <p> |
416 The source code for the OpenJDK is delivered in a set of |
456 The source code for the OpenJDK is delivered in a set of |