Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 189
  • Last Modified:

Library

Basic question, but where *are* the classes for the Java packages held?
0
krakatoa
Asked:
krakatoa
  • 4
  • 4
  • 3
  • +1
1 Solution
 
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
 
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
CEHJCommented:
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
 
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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 4
  • 3
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now