Here you can find the source of resolveSymLink(Path link)
public static File resolveSymLink(Path link) throws IOException
//package com.java2s; //License from project: Apache License import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; public class Main { public static File resolveSymLink(Path link) throws IOException { return Files.readSymbolicLink(link).toFile(); }/*from ww w .java 2 s . com*/ }