This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Dan Bizman
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 624
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic