Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java: How to get openjdk8u60 sources

Tags:

java

I understand that it seems to be very easy question but I can't find. When I do hg clone http://hg.openjdk.java.net/jdk8u/jdk8u I get sources for openjdk8u40 but I need openjdk8u60. How to get them?


2 Answers

My receipe is:

  1. Install mercurial to /usr/bin.
  2. Go to directory you want to download jdk8 sources.
  3. Run there: hg clone http://hg.openjdk.java.net/jdk8u/jdk8u/
  4. cd jdk8u/
  5. chmod +x get_source.sh
  6. LANG=C
  7. ./get_source.sh
  8. Make some coffee.
  9. Read built-in README-builds.html (located in the jdk8u as stated in this example) in order to build sources from received data, depending on your system.
  10. Enjoy.
like image 75
wanderlust Avatar answered Dec 09 '25 23:12

wanderlust


if you browse the hg repository you find that the organization is the following one: there are different repositories for different versions and there is one repository for the "dev version" at http://hg.openjdk.java.net/jdk8u/jdk8u you find the current stable version that is tagged jdk8u60-b12 so every new commit in this branch represent the current jdk8u60 stable version. if you want to grab the dev version of the same jdk you have to clone the repository at http://hg.openjdk.java.net/jdk8u/jdk8u-dev/

like image 27
Giovanni Avatar answered Dec 09 '25 22:12

Giovanni