File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "What Watch "What New topic

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.
I agree. Here's the link:
subject: What's included in default ClassLoader's search path?
Similar Threads
Validation Problem
Properties file
Problem loading Properties file
Resource bundle properties file in Spring MVC