Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Android Security Essentials Live Lessons this week in the Android 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.
 
 
subject: What's included in default ClassLoader's search path?
 
Similar Threads
Properties file
Resource bundle properties file in Spring MVC
Problem loading Properties file
rmi.server.codebase
Validation Problem