wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes What's included in default ClassLoader's search path? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "What Watch "What New topic
Author

What's included in default ClassLoader's search path?

Dan Bizman
Ranch Hand

Joined: Feb 25, 2003
Posts: 387
Are all of the following part of where class loader tries to load/find classes from? (in no order)

1. java.class.path property
2. boot classpath
3. ext directory
4. user.dir property
5. user.home (is this used for loading classes?)
6. ?
Mark Vedder
Ranch Hand

Joined: Dec 17, 2003
Posts: 624

This page of Sun's Java Tutorial has a basic description of the search order. This article provides some additional detail. Although it is about the BootClasspath, I found the article available on this page very informative.
 
wood burning stoves
 
subject: What's included in default ClassLoader's search path?