Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Location of Java packages" Watch "Location of Java packages" New topic

Location of Java packages

Richards Milan

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

Joined: Oct 13, 2005
Posts: 44524
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: 14998

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 which is in your JDK installation directory.

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

Joined: Oct 13, 2005
Posts: 44524
There would only be one thing better than beating Jesper’s post by 17 seconds . . .
I agree. Here's the link:
subject: Location of Java packages
It's not a secret anymore!