开发者

Where can I find Java API code [duplicate]

开发者 https://www.devze.com 2022-12-22 20:11 出处:网络
This question already has answers here: Java API Source Code [closed] (6 answers) Closed 5 years ago. I heard that Java is a opensource code. so, Can I get Java API coding methodology? If
This question already has answers here: Java API Source Code [closed] (6 answers) Closed 5 years ago.

I heard that Java is a opensource code. so, Can I get Java API coding methodology? If so, please let me know where can I get the sou开发者_如何转开发rce code for Java APIs.


You can find it in the src.zip in the JDK installation directory.

From Java docs:

Source Code:

(In src.zip) JavaTM programming language source files for all classes that make up the Java core API (that is, sources files for the java., javax. and some org.* packages, but not for com.sun.* packages). This source code is provided for informational purposes only, to help developers learn and use the JavaTM programming language. These files do not include platform-specific implementation code and cannot be used to rebuild the class libraries. To extract these file, use any common zip utility. Or, you may use the Jar utility in the JDK's bin/ directory:

jar xvf src.zip
0

精彩评论

暂无评论...
验证码 换一张
取 消