插件在 Windows 7 64 位上的 Eclipse 中不起作用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1978379/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Plugins not working in Eclipse on Windows 7 64-bit
提问by MobileDev852
On my brand new Windows 7 machine, I downloaded Eclipse (Galileo) and several Eclipse plugins (Android's ADT plugin, Subclipse, etc.)
在我全新的 Windows 7 机器上,我下载了 Eclipse (Galileo) 和几个 Eclipse 插件(Android 的 ADT 插件、Subclipse 等)
After rebooting, neither of these plugins are showing up in the IDE (nothing in the preferences, menus, etc.) but if I click "Installation Details" in the 'About Eclipse' popup, I see all of the plugins listed as Installed Software. (ex. Android DDMS 0.9.5, Subclipse 1.6.5, etc.)
重新启动后,这些插件都没有显示在 IDE 中(首选项、菜单等中没有任何内容)但是如果我在“关于 Eclipse”弹出窗口中单击“安装详细信息”,我会看到所有插件都列为已安装的软件. (例如 Android DDMS 0.9.5、Subclipse 1.6.5 等)
How do I get my plugins to work?
如何让我的插件工作?
回答by demoncodemonkey
I installed the following:
我安装了以下内容:
- jre-6u21-windows-x64.exe{you have to download it using IE-64bit}(C:\Program Files\Java\jre6)
- android-sdk_r06-windows.zip(C:\Program Files\Java\android-sdk-windows)
- eclipse-jee-helios-win32-x86_64.zip(C:\Program Files\Eclipse)
- jre-6u21-windows-x64.exe {你必须使用 IE-64bit 下载它}(C:\Program Files\Java\jre6)
- android-sdk_r06-windows.zip(C:\Program Files\Java\android-sdk-windows)
- eclipse-jee-helios-win32-x86_64.zip(C:\Program Files\Eclipse)
First time I tried, I had the same problem as above - no "Android SDK and AVD Manager" in Window menu, and no "Android" item in the Eclipse Window Preferences.
第一次尝试时,我遇到了与上述相同的问题 - 窗口菜单中没有“Android SDK 和 AVD 管理器”,Eclipse 窗口首选项中也没有“Android”项目。
I uninstalled the ADT pluginand closed Eclipse. Then launched Eclipse in Administrator mode. Then I installed ADT, closed and reopened Eclipse as normal, and it worked :D
我 卸载了 ADT 插件并关闭了 Eclipse。然后以管理员模式启动 Eclipse 。然后我安装了 ADT,像往常一样关闭并重新打开 Eclipse,它工作了:D
回答by rick
Moved the Eclipse to X86 and worked Thanks man that was getting annoying
将 Eclipse 移至 X86 并开始工作,谢谢那个越来越烦人的人
回答by Lee Theobald
I was getting this problem too. Installing Eclipse 64 bit into C:\Program Files\ and using a 64 bit JVM. For me the problem turned out to be the UAC (User Access Control). Once I turned this off via the control panel & restarted, I was able to install my plugins correctly.
我也遇到了这个问题。将 Eclipse 64 位安装到 C:\Program Files\ 并使用 64 位 JVM。对我来说,问题原来是 UAC(用户访问控制)。一旦我通过控制面板关闭它并重新启动,我就能够正确安装我的插件。
No idea why Eclipse or Windows didn't prompt me in some way. Now to turn it back on after my plugins have installed.
不知道为什么 Eclipse 或 Windows 没有以某种方式提示我。现在在我的插件安装后重新打开它。
回答by MobileDev852
After mucking around for a while, I realized that when I copied the Eclipse directories to program files, I put them under the 64 bit directory, not the 32 bit (x86).. after moving eclipse to the new directory and reinstalling the plugin, it seems to work. Not sure if this is correlation or causation so maybe someone with more expertise can shed some light on this situation.
折腾了一会,我发现当我将 Eclipse 目录复制到程序文件时,我将它们放在 64 位目录下,而不是 32 位 (x86) 目录下.. 将 eclipse 移动到新目录并重新安装插件后,它似乎工作。不确定这是相关性还是因果关系,所以也许有更多专业知识的人可以对这种情况有所了解。
回答by VonC
An eclipse under Program Files
(and not Program Files (x86)
):
在Program Files
(而不是Program Files (x86)
)下的日食:
- should be a 64-bit eclipse distro ("
Windows (x86_64)
") - meant to be used with a 64-bit JDK only.
Actually, you cannot download the 64-bit eclipse distro without having a warning specifying you need a 64-bit JVM:
- 应该是 64 位 Eclipse 发行版(“
Windows (x86_64)
”) - 旨在仅与 64 位 JDK 一起使用。
实际上,如果没有指定需要 64 位 JVM 的警告,就无法下载 64 位 eclipse 发行版:
This build requires a 64-bit JVM, and will not run with a 32-bit JVM.
You can, for example, use the Sun 64-bit 1.5 JVM for AMD64.
Note that the Sun 1.4.2 JVM for AMD64 is 32-bit and therefore cannot be used to run this build.
此构建需要 64 位 JVM,并且不会与 32 位 JVM 一起运行。
例如,您可以将 Sun 64 位 1.5 JVM 用于 AMD64。
请注意,用于 AMD64 的 Sun 1.4.2 JVM 是 32 位的,因此不能用于运行此构建。
So: are you sure you have a 64-bit eclipse?
and what java -version
returns? (Java HotSpot(TM) 64-BitServer VM?)
所以:你确定你有一个 64 位的日食吗?
什么java -version
回报?(Java HotSpot(TM) 64 位服务器虚拟机?)
回答by Cytown
First check the Window -> Preferences -> Android exists or not.
首先检查 Window -> Preferences -> Android 是否存在。
If exists, just point the SDK Location to your android sdk location.
如果存在,只需将 SDK 位置指向您的 android sdk 位置。
If something missing, just Window -> Android SDK And AVD Manager to download all the sdk you needed.
如果缺少某些内容,只需 Window -> Android SDK 和 AVD Manager 即可下载您需要的所有 sdk。
p.s. Just download the new 64bit jdk from sun, file named jdk-6u17-windows-x64.exe.
ps 只需从 sun 下载新的 64 位 jdk,文件名为 jdk-6u17-windows-x64.exe。
回答by Brad
C:\Program Files\eclipse -> right click -> Properties -> Security -> Edit -> Add... -> your username -> Full Control -> Apply
C:\Program Files\eclipse -> 右键单击 -> 属性 -> 安全 -> 编辑 -> 添加... -> 你的用户名 -> 完全控制 -> 应用
While running Eclipse as administrator does work, I found that doing the above to give yourself and normal Eclipse full write access to the folder is far better since you only have to do it once.
虽然以管理员身份运行 Eclipse 确实有效,但我发现执行上述操作以授予您自己和普通 Eclipse 对该文件夹的完全写入权限要好得多,因为您只需执行一次。
回答by Taro
I had the same problem and resolved it installing Eclipse in an own, user-defined directory, but NOT inside any of those system-managed "C:\Program Files"-directories.
我遇到了同样的问题并解决了它,将 Eclipse 安装在自己的用户定义目录中,但不在任何系统管理的“C:\Program Files”目录中。