1. CSS
  2. Flash
  3. HTML
  4. Illustrator
  5. Java
  6. JavaScript
  7. Maya
  8. Photography
  9. Photoshop
  10. PHP
  11. Ruby
  12. Ruby on Rails
  13. 3ds Max

Java: Locating resources in Java

  1. Clicks today:
    0
  2. Clicks this month:
    0
  3. Overall rating:
    3.25/5

Java » Basics — over 9 years ago
A resource is a file situated somewhere in the class path. It can be a file in a package folder, in the classes folder or in a jar file. Resources are usually needed at runtime and they can be properties files, images and so on. The ClassLoader and Class classes provide methods to find the desired resources but a little bit of attention has to be payed to the quirks of this API.

Comments

Your Comment

You must be logged in to post a comment.