确定链接文件的目标
import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths;/**来 自 n o w j a v a . c o m**/ public class Main { public static void main(String[] args) throws Exception { try { Path linkFile = Paths.get("C:/home/music/users.txt"); System.out.println("Target file is: " + Files.readSymbolicLink(linkFile)); } catch (IOException ex) { ex.printStackTrace(); } } }