Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Bertha Ferguson   on Jul 29 In Java Category.

  
Question Answered By: Hababah Younis   on Jul 29

You have to use the method
getClass().getResource(String name)

This returns a java.io.URL
This method is inherited from Object, so you can only
use it in an instance context. Within a static context

you have to use

ClassLoader.getSystemResource(String name)

Share: