Solved

Library

Posted on 2004-10-07
13
179 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
Comment Utility
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
Comment Utility
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
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
 
LVL 86

Accepted Solution

by:
CEHJ earned 150 total points
Comment Utility
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
Comment Utility
>> 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
Comment Utility
8-)
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 9

Expert Comment

by:Nick_72
Comment Utility
well that was exactly where I pointed to..
0
 
LVL 16

Author Comment

by:krakatoa
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
:-)
0
 
LVL 16

Author Comment

by:krakatoa
Comment Utility
Whatever.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
bunnyEars2 challenge 6 66
create a gui in perl 3 42
eclipse package explorer vs project explorer view 2 27
Java and GPO 11 45
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…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

762 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now