How to make a symlink in Java when running in Linux? How to make a symlink in Java when running in Linux? linux linux

How to make a symlink in Java when running in Linux?


The JDK 7 includes (via NIO.2) a class called Files that provides a createSymbolicLink() method.

Previous versions don't provide any built-in way to produce that, so JNI or Runtime.exec() are your only real options.