se provi
File f = new File("/dir/file");
System.out.println(f.getAbsolutePath());
stampa /dir/file