Hi On Mon, Jan 7, 2013 at 6:54 PM, <[email protected]> wrote: > This could be due to one of those damn Windows backslash issues. The > TestData class has the following in its static block: > > TestData.foaf.read(TestData.class.getResource( > System.getProperty("file.separator") + LOCAL_RESOURCE_FOAF) > .toString()); > > Replacing System.getProperty("file.separator") with "/" seems to fix those > tests.
Creating paths like that might be tricky. Generally if you try reading data via classpath you have to use '/' regardless of the OS. If you read the data from a File you need to use the OS specific file separators. As the above snippet clearly resolves the resource via the classpath using '/' should be save and work on any system. best Rupert -- | Rupert Westenthaler [email protected] | Bodenlehenstraße 11 ++43-699-11108907 | A-5500 Bischofshofen
