更改java符号链接 [英] Change java symlink
本文介绍了更改java符号链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的Windows 8
命令提示符不再显示Java.我发现在C:\ProgramData\Oracle\Java\javapath
中找到了我无法更改的错误符号链接.当我尝试更改时出现错误:
My Windows 8
command prompt doesn't see java anymore. I found that in C:\ProgramData\Oracle\Java\javapath
located wrong symlink that I can't change. When I try change I got error:
Problem with Shortcut
The name 'C:\Program Files\Java\jre1.8.0_45\bin\javaw.exe' specified in the Target box is not valid. Make sure the path and file name are correct.
当我尝试创建快捷方式时,我收到消息:
When I try to create shortcut I have message:
Windows can't create a shortcut here.
Do you want the shortcut to be placed on the desktop instead?
[Yes] [No]
如何解决这个问题?
推荐答案
以下是解决此问题的方法:
Here is how you solve this problem :
- 删除原始符号链接.他们三个都在那儿 是三个.
- 请勿创建快捷方式.快捷方式和符号链接不相同.
- 在同一目录中打开命令提示符,并使用"mklink"命令创建新的符号链接,并将其指向您的JDK安装.
- Delete the original symlinks. All the three of them, I think there are three.
- Do not create a shortcut. Shortcut and Symlinks are not same.
- Open a command prompt in the same directory and create new Symlinks using the "mklink" command and point it to your JDK install.
这篇关于更改java符号链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文