Windows 7 - Eclipse 现在需要我以管理员身份运行 [英] Windows 7 - Eclipse now needs me to run as administrator

查看:48
本文介绍了Windows 7 - Eclipse 现在需要我以管理员身份运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这台 W7 64 位机器上安装了 Eclipse (Kepler),最初我只需单击桌面图标或其他任何东西就可以正常"运行它.然后我用另一台机器上的目录替换了整个工作区"目录(因为我正在更改系统).

I installed Eclipse (Kepler) on this W7 64-bit machine and initially I could run it "normally" by just clicking the desktop icon or whatever. Then I replaced the whole "workspace" directory with one from another machine (because I'm changing systems).

现在,如果我不是以管理员身份"运行 Eclipse,它会打开,甚至会运行应用程序……但无法保存任何内容,包括对文件的更改和对任何类型的 .metadata 的更新.

Now if I run Eclipse not "as administrator" it opens and will even run apps... but nothing can be saved, including changes to files and updates to the .metadata of any kind.

我更改了可能涉及的所有所有权"和权限".我是这台机器的唯一用户,我在管理员组.如果我以管理员身份"运行,我 可以 仍然使用它.但是我很困惑为什么 UAC 之前应该很乐意在没有作为 'strator"的情况下运行 Eclipse,但现在拒绝了......

I changed all the "ownership" and "permissions" which could possibly be involved. I am the only user of this machine, and I am in the administrators group. I CAN still use it, if I run "as an administrator". But I'm stumped why the UAC should have been happy to run Eclipse before without the "as 'strator" but now refuses...

因为...我对这个问题的理解是,UAC 会查看应用程序并决定它们是否看起来很狡猾,并在此基础上决定您是否必须以strator"的身份运行.那么有什么变化?

Because... what I've understood about this question is that the UAC looks at apps and decides whether or not they look dodgy and on that basis decides whether you have to run "as 'strator". So what's changed?

我可以选择卸载 Eclipse 并重新安装它,然后逐步添加各种项目文件夹...很好,它可以工作.但我喜欢尽可能地理解这些东西!

I have the option of uninstalling Eclipse and reinstalling it, and then incrementally adding the various project folders... fine, it may work. But I like to understand these things as far as is feasibly possible!

推荐答案

因为...我对这个问题的理解是,UAC 会查看应用程序并决定它们是否看起来很狡猾,并在此基础上决定您是否必须以strator"的身份运行.

Because... what I've understood about this question is that the UAC looks at apps and decides whether or not they look dodgy and on that basis decides whether you have to run "as 'strator".

UAC 不会做类似的事情.UAC 是 Windows 以管理员身份运行应用程序的能力.可以通过三种方式以管理员身份运行应用程序(导致出现 UAC 同意对话框):

UAC doesn't do anything like that. UAC is an ability of Windows to run an application as an administrator. There are three four ways an application can be run as an administrator (causing the UAC consent dialog to appear):

  • 您右键单击该应用程序并选择以管理员身份运行"
  • 该应用程序的 requestedExecutionLevelrequireAdministrator
  • 应用程序的文件名看起来像安装应用程序(例如 setup.exeinstall.exeupdate.exe),在这种情况下,Shell 会选择将其提升运行,以防万一
  • 您使用 runas 动词调用 ShellExecute.
  • you right-click the application and select "Run As Administrator"
  • the application has been manifested with a requestedExecutionLevel of requireAdministrator
  • the application has a filename that looks like a setup application (e.g. setup.exe, install.exe, update.exe), in which case the Shell opts to run it elevated just in case
  • you call ShellExecute with the runas verb.

我认为发生了两件事之一:

i think there's one of two things happening:

  • 您错过了一个地方,在这种情况下,您应该使用 Process Monitor 来查找 Access denied 错误
  • 您尝试将文件复制到受保护的位置(例如 Program Files),但它们被重定向到:

  • you missed a spot, in which case you should use Process Monitor to look for Access denied errors
  • you tried copying files to a protected location (e.g. Program Files) and they were instead redirected to:

C:\Users\Mike\AppData\Local\VirtualStore\Program Files(x86)\Eclipse

然后当您运行 Eclipse 时,文件不在那里.

And then when you run Eclipse, the files are not there.

同样,使用 Process Monitor 查找 Eclipse 正在寻找什么.

Again, use Process Monitor to find where Eclipse is looking for what.

这篇关于Windows 7 - Eclipse 现在需要我以管理员身份运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆