[英]Java.exe access is denied
I have problem with access to java.exe from not parent directory. 我不是从父目录访问java.exe的问题。
Windows Vista Home Premium, JDK 7. Windows Vista家庭高级版,JDK 7。
I need to execute java.exe from any directory, but when I try to run it from Command Promt, I get message "Access is denied". 我需要从任何目录执行java.exe,但是当我尝试从Command Promt运行它时,出现消息“访问被拒绝”。 I configured all related environment variables.
我配置了所有相关的环境变量。 Access rights to this file allow me to run it.
该文件的访问权限允许我运行它。 All folders have read permissions.
所有文件夹都具有读取权限。
If I run it from parent directory, everything is OK. 如果我从父目录运行它,一切正常。
Does anybody know what's the problem? 有人知道出什么问题吗?
I cannot think of any explanation apart from the obvious one; 除了显而易见的解释,我想不出任何其他解释。 ie that in reality you have NOT configured the environment variables correctly for the command prompt.
也就是说,实际上您没有为命令提示符正确配置环境变量。
You might have set the PATH variable incorrectly. 您可能未正确设置PATH变量。
You might not have restarted the command shell after changing the environment variables. 更改环境变量后,您可能尚未重新启动命令外壳程序。
(I don't think this can be a permissions issue if you can execute java.exe
using the full pathname but not java
.) (如果您可以使用完整路径名而不是
java
来执行java.exe
那么我认为这不会是权限问题。)
(2019) Necromancing... (2019)死灵法师...
Today I was happily doing some %JAVA_HOME%\\BIN\\KeyTool.exe, when suddenly a blue band over my screen appeared where it said that Access denied and that the program wasn't created for this platform. 今天,我很开心地在做一些%JAVA_HOME%\\ BIN \\ KeyTool.exe,这时我的屏幕上突然出现一个蓝带,表示Access被拒绝并且该程序不是为此平台创建的。 I had used KeyTool on this virtual machine over a 100 times?
我在此虚拟机上使用KeyTool超过100次?
This is how I stumbled upon this question. 这就是我偶然发现这个问题的方式。
Since internet didn't help my, I just uninstalled java, and re-installed it again, and Wham Bam Alakazam: it works again. 由于互联网没有帮助我,所以我只是卸载了java,然后重新安装了它,而Wham Bam Alakazam:它又可以工作了。 So instead of searching what's wrong: just reinstall and within 4 minutes you're airborn again.
因此,与其寻找问题所在,不如:重新安装,然后在4分钟之内再次出生。
尝试使用“以管理员身份运行”来运行cmd.exe。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.