public static File getFileFromNativePath ( String fileNameWithNoPath ) { //get system path String systemPath = System . getProperty ( "java.library.path" ) ; String pathSeperator = System . getProperty ( "path.separator" ) ; String [ ] systemPathElements = systemPath . split ( pathSeperator ) ; //get file File file = IOHelper . getFileFromPathList ( fileNameWithNoPath , systemPathElements ) ; return file ; }
This function returns the file object of the first location in which the requested file is found . The path list used is the current native path of the process .