Wednesday, March 18, 2015

Symbolic Link in Windows

After JRE upgrade for web browser in order to run applet, I could no longer start my eclipse that is previously using JDK 7. With a checking on PATH setting, I notices the upgrade created a folder
and it was searched the first. In the folder, I found symbolic links for java.exe, javaw.exe and javaws.exe. Relinking them to JDK7 resovled eclipse launching problem. It also had no problem to run the applet from the browser. Neat solution!

This is my first time to create symbolic links in Windows. A chance to learn its syntax.

MKLINK [[/D] | [/H] | [/J]] Link Target

        /D      Creates a directory symbolic link.  Default is a file
                symbolic link.
        /H      Creates a hard link instead of a symbolic link.
        /J      Creates a Directory Junction.
        Link    specifies the new symbolic link name.
        Target  specifies the path (relative or absolute) that the new link
                refers to.

No comments: