user2022068
user2022068

Reputation:

Java: How to get openjdk8u60 sources

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?

Upvotes: 3

Views: 1698

Answers (2)

wanderlust
wanderlust

Reputation: 1936

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.

Upvotes: 7

Giovanni
Giovanni

Reputation: 4015

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/

Upvotes: 2

Related Questions