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 API classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "API classes" Watch "API classes" New topic
Author

API classes

Tom Schuman
Greenhorn

Joined: Dec 30, 2004
Posts: 18
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

Joined: Jul 08, 2003
Posts: 24184
    
  34

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.


[Jess in Action][AskingGoodQuestions]
Igor Stojanovic
Ranch Hand

Joined: Feb 18, 2005
Posts: 58
On my computer source is located here:

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


kind regards
Igor
Tom Schuman
Greenhorn

Joined: Dec 30, 2004
Posts: 18
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

Joined: Dec 06, 2001
Posts: 3061
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


Java API Documentation
The Java Tutorial
Igor Stojanovic
Ranch Hand

Joined: Feb 18, 2005
Posts: 58
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

Joined: Jul 08, 2003
Posts: 24184
    
  34

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: API classes