Currently I use \'ln\' command via Runtime.exec(). It works fine. The only problem is that in order to do this fork, we need twice the heap space o
ln
Runtime.exec()
It’s easy in Java 7 using createLink:
Files.createLink(Paths.get("newlink"), Paths.get("existing"));