This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to view source code

 
Asuthosh Borikar
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have JDK 1.2.1 installed on my computer. How do I see the source code for all the classes and interfaces? Any help will be appreciated.
 
Peter Tran
Bartender
Posts: 783
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Asuthosh,
In the directory that you installed the jdk, (e.g. c:\jdk1.2.1) you should see a src.jar file. If you unzip or unjar this entire jar file, you'll see all the java files for all the classes and interfaces.
-Peter
 
Neeraj Vasudeva
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I safely delete this jar file, or is there any disadvantge of deleting it ?
------------------
Come to my site... www.sunjavacertification.com & explore the things..i am a new bie in java.
(edited by Cindy to get link to work)
[This message has been edited by Cindy Glass (edited February 16, 2001).]
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Someday you are going to want to subclass one of the classes in the JFC. Then you are really going to be sorry that you can't find the SRC file so that you can read the code.
Course you can download it again from SUN - so no irrepairable damage.
PS, your site looks nice - but a bit slow - I gave up after a while. Maybe I'll try again later.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic