I want to experiment with changes to the java library in java.lang, and possibly eventually other packages. This means instead of using rt.jar
, I want to be able to separate out at least java.lang and compile to them.
It is not possible to edit source code for classes in java.lang if using rt.jar because they are already found in rt.jar.
I found the repo in mercurial: http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/file/tip/src/share/classes/
but no instructions on how to build.
I just built jdk by installing a jdk9, then using mercurial:
hg clone http://hg.openjdk.java.net/jdk/jdk/
I can successfully build the java executable and all utilities, but rt.jar is not in this package.