哪里可以获得rt.jar的完整源代码? [英] Where to get full source code for rt.jar?
问题描述
我正在为Oracle JRE / JDK 6 Update 22搜索rt.jar的源代码。
交付时附带的src.zip不包含所有源,例如sun。* (例如sun.reflect.Reflection)包丢失了。
I am searching the source code for rt.jar for Oracle JRE/JDK 6 Update 22. The src.zip, which is included with the delivery, does not contain all sources, for examples the sun.* (e.g. sun.reflect.Reflection) packages are missing.
我在哪里可以获得完整的src.zip?
Where can I get a complete src.zip?
推荐答案
编辑2017-11-22:
这个答案写于2010年,世界各不相同。如果您只需要JRE类的源代码,请在JDK构建中使用JRE - 大多数现代IDE都会识别包含的src.zip文件。
EDIT 2017-11-22:
This answer was written in 2010 where the world was very different. If you just need the sources for the JRE classes, use the JRE in a JDK build - the included src.zip file is recognized by most modern IDE's.
如果你真的,真的需要完整的源代码(如果你不确定,你没有)然后找到一个合适的OpenJDK调试版本或从源代码构建OpenJDK。
If you really, really need the full source (if you are unsure, you don't) then find a suitable OpenJDK debug build or build OpenJDK from source.
您可以从 http://download.java.net/jdk6/source/
非常重要说明:这是在Java研究许可证下进行的,它可能会以与您需要知道的方式不相符的方式污染您。
VERY IMPORTANT NOTE: This is under the Java Research License, which may taint you in a way incompatible with what you need to know this for.
这篇关于哪里可以获得rt.jar的完整源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!