How to get java to recognize symbolic links under cygwin
- by Keith Randall
Here's a very simple java program to print the first line of a file:
import java.io.*
public class test {
public static void main(String[] args) throws IOException {
System.out.print(new BufferedReader(new FileReader(args[0])).readLine());
}
}
When I run this program under cygwin and pass it the name of a symbolic link, it prints the…