File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes JAVA class file source code. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JAVA class file source code." Watch "JAVA class file source code." New topic
Author

JAVA class file source code.

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Does anyone know if JAVA's class source code is available to look at. For instance, if I wanted to see the JButton.class file but JButton.java, or does it not exist??

------------------
Happy Coding,
Gregg Bolinger


GenRocket - Experts at Building Test Data
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

It does -- part of the JDK available from Sun includes source. It's in a file called src.jar.
------------------
Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
Wilfried LAURENT
Ranch Hand

Joined: Jul 13, 2001
Posts: 269
I just add in case you do not know that the content of a jar file can be explored and java source files easily extracted from a jar file with a tool like Winzip.
W.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Thank you VERY much!!
------------------
Happy Coding,
Gregg Bolinger
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAVA class file source code.