Help (!) create shortcut on Windows from java code

I need something that creates symbolic link aka shortcut on Windows.

Code below creates symbolic link on Linux


Runtime.getRuntime().exec("ln -s <target> <link>");



Some windows installations can contain linkd.exe/shortcut.exe/xxxlink.exe but some don't.

I need something that will surely work on all. may be JNI and C/C++.



Share this article: