Solved

Library

Posted on 2004-10-07
13
183 Views
Last Modified: 2010-03-31
Basic question, but where *are* the classes for the Java packages held?
0
Comment
Question by:krakatoa
  • 4
  • 4
  • 3
  • +1
13 Comments
 
LVL 9

Expert Comment

by:Nick_72
ID: 12247506
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
 
LVL 3

Expert Comment

by:nesnemis
ID: 12247513
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 12247520
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
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 
LVL 86

Accepted Solution

by:
CEHJ earned 150 total points
ID: 12247545
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
 
LVL 16

Author Comment

by:krakatoa
ID: 12247587
>> If you mean the core libary packages, they're in rt.jar in  ...

yes, that's exactly what I mean, thanks.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 12247624
8-)
0
 
LVL 9

Expert Comment

by:Nick_72
ID: 12247642
well that was exactly where I pointed to..
0
 
LVL 16

Author Comment

by:krakatoa
ID: 12247654
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
 
LVL 9

Expert Comment

by:Nick_72
ID: 12247680
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
 
LVL 16

Author Comment

by:krakatoa
ID: 12247708
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
 
LVL 9

Expert Comment

by:Nick_72
ID: 12248648
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
 
LVL 3

Expert Comment

by:nesnemis
ID: 12248699
:-)
0
 
LVL 16

Author Comment

by:krakatoa
ID: 12248729
Whatever.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to see all occupied ports on windows 10 laptop 15 77
jboss wildfly 10.1 10 251
ejb stateless example 2 27
IBM TS2900 (3572) Tape Autoloader Java? 12 19
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question