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
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?