Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAVA class file source code.

 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Wilfried LAURENT
Ranch Hand
Posts: 269
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you VERY much!!
------------------
Happy Coding,
Gregg Bolinger
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic