Solved

Library

Posted on 2004-10-07
13
185 Views
Last Modified: 2010-03-31
Basic question, but where *are* the classes for the Java packages held?
0
Comment
Question by:krakatoa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: 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!

 
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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

626 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