简体   繁体   English

插件在Windows 7 64位上无法在Eclipse中运行

[英]Plugins not working in Eclipse on Windows 7 64-bit

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. 重新启动后,这些插件都没有显示在IDE中(首选项,菜单等中没有任何内容),但如果单击“关于Eclipse”弹出窗口中的“安装详细信息”,我会看到所有插件都列为已安装的软件。 (ex. Android DDMS 0.9.5, Subclipse 1.6.5, etc.) (例如Android DDMS 0.9.5,Subclipse 1.6.5等)

How do I get my plugins to work? 如何使我的插件工作?

I installed the following: 我安装了以下内容:

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. 我第一次尝试,我遇到了与上面相同的问题 - 在Window菜单中没有“Android SDK和AVD Manager”,在Eclipse Window Preferences中没有“Android”项。

I uninstalled the ADT plugin and closed Eclipse. 卸载了ADT插件并关闭了Eclipse。 Then launched Eclipse in Administrator mode . 然后以管理员模式启动Eclipse。 Then I installed ADT, closed and reopened Eclipse as normal, and it worked :D 然后我安装了ADT,正常关闭并重新打开Eclipse,它起作用了:D

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. 在捣乱了一段时间之后,我意识到当我将Eclipse目录复制到程序文件时,我将它们放在64位目录下,而不是32位(x86)..将eclipse移动到新目录并重新安装插件后,它似乎工作。 Not sure if this is correlation or causation so maybe someone with more expertise can shed some light on this situation. 不确定这是相关性还是因果关系,所以也许有更多专业知识的人可以对这种情况有所了解。

将Eclipse移到了X86并且工作了感谢烦恼的人

I was getting this problem too. 我也遇到了这个问题。 Installing Eclipse 64 bit into C:\\Program Files\\ and using a 64 bit JVM. 将Eclipse 64位安装到C:\\ Program Files \\并使用64位JVM。 For me the problem turned out to be the UAC (User Access Control). 对我来说,问题原来是UAC(用户访问控制)。 Once I turned this off via the control panel & restarted, I was able to install my plugins correctly. 一旦我通过控制面板关闭它并重新启动,我就能正确安装我的插件。

No idea why Eclipse or Windows didn't prompt me in some way. 不知道为什么Eclipse或Windows没有以某种方式提示我。 Now to turn it back on after my plugins have installed. 现在我的插件安装后重新打开它。

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完全写入文件夹的访问权限要好得多,因为您只需要执行一次。

我遇到了同样的问题并解决了它在自己的用户定义目录中安装Eclipse,但不在任何系统管理的“C:\\ Program Files”目录中。

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) ") 应该是一个64位的eclipse发行版(“ Windows (x86_64) ”)
  • meant to be used with a 64-bit JDK only. 意味着仅与64位JDK一起使用。
    Actually, you cannot download the 64-bit eclipse distro without having a warning specifying you need a 64-bit JVM: 实际上,如果没有指示需要64位JVM的警告,则无法下载64位eclipse发行版:

This build requires a 64-bit JVM, and will not run with a 32-bit JVM. 此构建需要64位JVM,并且不能与32位JVM一起运行。
You can, for example, use the Sun 64-bit 1.5 JVM for AMD64. 例如,您可以将Sun 64位1.5 JVM用于AMD64。
Note that the Sun 1.4.2 JVM for AMD64 is 32-bit and therefore cannot be used to run this build. 请注意,AMD64的Sun 1.4.2 JVM是32位,因此无法用于运行此版本。

So: are you sure you have a 64-bit eclipse? 那么:你确定你有一个64位的日食吗?
and what java -version returns? 什么java -version返回? (Java HotSpot(TM) 64-Bit Server VM?) (Java HotSpot(TM) 64位服务器VM?)

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。

ps Just download the new 64bit jdk from sun, file named jdk-6u17-windows-x64.exe. ps只需从sun下载新的64bit jdk,文件名为jdk-6u17-windows-x64.exe。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM