Symbolic link messed up on OSX while trying to change the Java version -
i done bad thing please help.
i in:
/system/library/frameworks/javavm.framework/versions
i told run following command:
sudo ln -fhsv 1.6 currentjdk
which has pretty messed up:
lrwxr-xr-x 1 root wheel 10 5 apr 20:57 1.4 -> currentjdk lrwxr-xr-x 1 root wheel 10 5 apr 20:57 1.4.2 -> currentjdk lrwxr-xr-x 1 root wheel 10 5 apr 20:57 1.5 -> currentjdk lrwxr-xr-x 1 root wheel 10 5 apr 20:57 1.5.0 -> currentjdk lrwxr-xr-x 1 root wheel 10 5 apr 20:57 1.6 -> currentjdk lrwxr-xr-x 1 root wheel 10 5 apr 20:57 1.6.0 -> currentjdk drwxr-xr-x 8 root wheel 272 5 apr 20:57 lrwxr-xr-x 1 root wheel 1 5 apr 20:57 current -> lrwxr-xr-x 1 root wheel 3 6 apr 00:22 currentjdk -> 1.6
how can revert 1.6
not symbolic link? directory before.
my directory looks this:
$ ls -l /system/library/frameworks/javavm.framework/versions total 64 lrwxr-xr-x 1 root wheel 10 mar 11 20:37 1.4 -> currentjdk lrwxr-xr-x 1 root wheel 10 mar 11 20:37 1.4.2 -> currentjdk lrwxr-xr-x 1 root wheel 10 mar 11 20:37 1.5 -> currentjdk lrwxr-xr-x 1 root wheel 10 mar 11 20:37 1.5.0 -> currentjdk lrwxr-xr-x 1 root wheel 10 mar 11 20:37 1.6 -> currentjdk lrwxr-xr-x 1 root wheel 10 mar 11 20:37 1.6.0 -> currentjdk drwxr-xr-x 8 root wheel 272 mar 11 20:37 lrwxr-xr-x 1 root wheel 1 mar 11 20:37 current -> lrwxr-xr-x 1 root wheel 59 mar 11 20:37 currentjdk -> /system/library/java/javavirtualmachines/1.6.0.jdk/contents
so this:
sudo -s cd /system/library/frameworks/javavm.framework/versions ln -sf /system/library/java/javavirtualmachines/1.6.0.jdk/contents 1.6
Comments
Post a Comment