I would like to see what a method in the Java API does. So I want the JDK source code.
Before I reinstalled Linux I had the src.zip package with all the official source code in it. I just had to tell Eclipse where this file is and I could see the code. But now I don’t have the file anymore…
Where can I find it?
You haven’t said which version you want, but an archive of the JDK 8 source code can be downloaded here, along with JDK 7 and JDK 6.
Additionally you can browse or clone the Mercurial repositories: 8, 7, 6.