Library

Basic question, but where *are* the classes for the Java packages held?
LVL 17
krakatoaAsked:
Who is Participating?
 
CEHJConnect With a Mentor Commented:
If you mean the core libary packages, they're in rt.jar in the runtime's library folder from the point of view of running, or in the lib of the sdk from the point of view of compiling
0
 
Nick_72Commented:
normally within jar-files. The jar-files can be located anywhere as long as their path can be found by the virtual machine. Normally in the jre's lib folder (if third party classes, in lib/ext folder).

/Nick
0
 
nesnemisCommented:
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
CEHJCommented:
There is not any absolute location determinable by the user. It's a directive to the classloader to load required classes in that package using the classpath
0
 
krakatoaAuthor Commented:
>> If you mean the core libary packages, they're in rt.jar in  ...

yes, that's exactly what I mean, thanks.
0
 
CEHJCommented:
8-)
0
 
Nick_72Commented:
well that was exactly where I pointed to..
0
 
krakatoaAuthor Commented:
But I wanted to know exactly where the packages are, because I had already searched all the jars on my system (thinking that that is where they were) but had no idea in which one.
0
 
Nick_72Commented:
no big deal, but by your question one can't read out it was a specific jar-file, nor which package (which packages are not java packages...?).
0
 
krakatoaAuthor Commented:
Well you must think it is a big deal else you wouldnt mention it - but I dont think you can expect my question to relate to anything else than the "Java" packages, since I can hardly expect anyone else to know where custom packages are held on another system, except that they must be in the classpath somewhere, and even I knew that. ;)
0
 
Nick_72Commented:
1. Annoying, yes, big deal, no. Annoying is by far enough for making a post.

2. As I said earlier, custom packages are also java packages. It didn't say 'core library packages'.

3. >>since I can hardly expect anyone else to know where custom packages are held on another system...
Sure, that's why I told you they usually is located in lib/ext.

0
 
nesnemisCommented:
:-)
0
 
krakatoaAuthor Commented:
Whatever.
0
All Courses

From novice to tech pro — start learning today.