• Post Reply Bookmark Topic Watch Topic
  • New Topic

getClass().getResource()  RSS feed

 
Dhana Muthu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.....
I would like to use the getClass().getResource() inside a static method, which is basically a utility method.. But i'm getting non-static referece compilation error..
Any fixes ??
dhana
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dhana
Try this,

Regards
Maulin
 
Dhana Muthu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah... i tried same kind of code and it worked...
Thanks .....
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!