Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

API classes

 
Tom Schuman
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From where could i read the code for all classes in the API?
Can i find them somewhere on my computer or are they listed somewhere on sun's homepage?
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's a file "src.zip" that can be optionally installed along with the JDK. Look for it in your JDK home directory. If it's not there, you'll need to run the installer again and this time check the appropriate box to have the source code installed.
 
Igor Stojanovic
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On my computer source is located here:

c:\Program Files\Java\jdk1.5.0\src.zip


kind regards
Igor
 
Tom Schuman
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nice found them
But what are com, launcher and sunw can't find them in the API.
Also is there some way to hide comments in Eclipse, those source codes are so full with comments it's hard to read the code itself.
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Tom Schuman:
...what are com, launcher and sunw can't find them in the API....

Where did you see these names? Without some context, these could mean a lot of different things.

Layne
 
Igor Stojanovic
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Tom Schuman:
Nice found them
But what are com, launcher and sunw can't find them in the API.
Also is there some way to hide comments in Eclipse, those source codes are so full with comments it's hard to read the code itself.


Check Help provided with Eclise, you should be able to find that option very easy.


kind regards
Igor
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Tom Schuman:

But what are com, launcher and sunw can't find them in the API.


They're Java code that is part of the JDK, but that is not intended to be part of the API -- i.e., you'll use them indirectly, but you should never refer to them by name. Some of it is tools like the Java compiler itself, which is written in Java; other parts are AWT implementation classes and other less interesting bits and pieces.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic