aspose file tools*
The moose likes Beginning Java and the fly likes Location of Java packages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Location of Java packages" Watch "Location of Java packages" New topic
Author

Location of Java packages

Richards Milan
Greenhorn

Joined: Jun 24, 2012
Posts: 29

Guys I have a doubt regarding the location of "packages of JAVA API " is it in the JDK folder or JRE folder ?


Do you know why Java programmers wear specs ? Its because they don't 'C#'
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39834
    
  28
Please don’t add a new question to an existing discussion. I have separated your question off.

Not sure. But I think the .class files are all bundled into a file called rt.jar. So explore your Java™ installation folder and find rt.jar. On a Linux box, you can use Archive Manager to explore the contents of that file, but I don’t know whether there is a corresponding program on Windows®. If you can’t explore it, try copying it to a temporary location and unzipping it. Then you can explore it and play with it, secure in the knowledge you aren’t damaging your installation because you took a copy.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14347
    
  22

What do you mean exactly?

The classes of the standard Java API are in a file named rt.jar, which is included in both the JDK and the JRE.

You can find the source code of these classes in a file named src.zip which is in your JDK installation directory.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39834
    
  28
There would only be one thing better than beating Jesper’s post by 17 seconds . . .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Location of Java packages