eclipse ADT Bundle for Windows 7 64bit 缺少 JRE 文件夹并且无法运行 - 我试过了
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13812340/
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
ADT Bundle for Windows 7 64bit missing JRE folder and wont run - I've tried
提问by ZenOokami
So I downloaded the 64bit version of the ADT Bundle from developer.android.com and what not, but when I run eclipse (from this bundle - this is not trying to add the plug in to an existing IDE, this is just the bundle) it tells me im missing javaw.exe in a path for adt...\eclipse\jre\bin\javaw.exe
所以我从 developer.android.com 下载了 64 位版本的 ADT Bundle,但当我运行 eclipse 时(从这个包中 - 这不是试图将插件添加到现有的 IDE,这只是包)它告诉我我在 adt...\eclipse\jre\bin\javaw.exe 的路径中缺少 javaw.exe
I found my personal java installation on my computer and copied the files over, but now it's saying it's failing at running a .dll file.
我在我的电脑上找到了我的个人 java 安装并复制了文件,但现在它说它无法运行 .dll 文件。
Does anyone have any advice? perhaps even which JRE version does this bundle use?
有人有建议吗?甚至这个包使用的是哪个 JRE 版本?
回答by ZenOokami
Ok, now I feel bad for asking when the problem was so trivial, so let me explain :D
好的,现在我很抱歉在问题如此微不足道的时候问,所以让我解释一下:D
I run a 64bit system, for some reason java read my browser as a 32bit (I did not know there was only one version of chrome - 32bit - at the time) so I got a 32 bit version of jre, so when I copied over the files to the x64 adt folder it failed, and that's why.
我运行的是 64 位系统,出于某种原因,java 将我的浏览器读取为 32 位(当时我不知道只有一个版本的 chrome - 32 位),所以我得到了 32 位版本的 jre,所以当我复制过来时文件到 x64 adt 文件夹失败,这就是原因。
so all I did was download x64 jre from a third party site (cnet) and then did my copy process over.
所以我所做的只是从第三方站点 (cnet) 下载 x64 jre,然后完成我的复制过程。
Worked like a charm :D
像魅力一样工作:D
If anyone is having this issue I hope this post will find you (or you, it) and it'll help. To the community, sorry for asking the question and finally solving it with my last attempt at my own troubleshooting xD.
如果有人遇到这个问题,我希望这篇文章能找到你(或你,它)并且会有所帮助。对于社区,很抱歉提出这个问题并最终通过我自己的故障排除 xD 的最后一次尝试解决了它。
[Summary of problem fix]-Download JRE for your right version of the OS -copy over the JRE contents and add them into your Eclipse folder.
[问题修复摘要]- 下载适用于您正确版本的操作系统的 JRE - 复制 JRE 内容并将它们添加到您的 Eclipse 文件夹中。
keep in mind, your jre folder may be named "Jre7u" or something, what you want to do is open that folder, select everything inside, go to your ADT folder, go into the eclipse folder, create your own folder named "jre" and then paste everything inside that folder.
请记住,您的 jre 文件夹可能命名为“Jre7u”或其他名称,您要做的是打开该文件夹,选择其中的所有内容,转到您的 ADT 文件夹,进入 eclipse 文件夹,创建您自己的名为“jre”的文件夹然后将所有内容粘贴到该文件夹中。
should work like a charm :D
应该像魅力一样工作:D
-ZenOokami
-ZenOokami
回答by Paul Harding
you can also add -vm into the ini once you have installed the correct version of the JRE. Also could not get it to work from Programs Files (x86)
您还可以在安装了正确版本的 JRE 后将 -vm 添加到 ini 中。也无法从 Programs Files (x86) 开始工作
So add this to the top of the ini file
所以将此添加到ini文件的顶部
-vm C:\Program Files\Java\jre7\bin
-vm C:\Program Files\Java\jre7\bin