• Post Reply Bookmark Topic Watch Topic
  • New Topic

getResource()  RSS feed

 
varnika Raman
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a file in the same dir as my JavaClass which I need to read. I used
this.getClass().getResource(XSLT_FILE)
This worked fine in NT. But I have to deploy this in UNIX BOX. Unfortunately the above code doesn't work.
Does anyone know how to solve this.
Thanks
Varnika
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Should definitely work the same, given the same JDK version and the same file layout. Perhaps you could supply more details. Maybe your "XSLT_FILE" contains some Windows vs. UNIX filename problems -- for example, UNIX systems are case sensitive, while Windows isn't?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!