[英]SDK Manager.exe doesn't work
When I clicked SDK Manager on Program Files or run it in cmd
, nothing happened.当我在 Program Files 上单击 SDK Manager 或在
cmd
中运行它时,什么也没发生。 I did:我做了:
Actually a black cmd window appears and disappears a milliseconds.实际上,黑色 cmd window 出现并消失一毫秒。
How to fix it?如何解决?
Edit:编辑:
I Googled day by day but can't find a solution for this.我每天都在谷歌上搜索,但找不到解决方案。 Even I set path for ANDROID_SWT it also can't run.
即使我为 ANDROID_SWT 设置路径它也无法运行。 I suspect that Android SDK has bug in its installation package.
我怀疑 Android SDK 在其安装 package 中存在错误。
Android installation - sdk manager.exe does not work Android 安装 - sdk manager.exe 不起作用
Android installation/SDK Manager issues Android 安装/SDK 管理器问题
I'm totally exhausted and this is the last my try:我完全筋疲力尽,这是我最后一次尝试:
But nothing changes.但什么都没有改变。
Edit:编辑:
Actually this is the second time I meet this problem.其实这是我第二次遇到这个问题。 I got this problem only after I added more Environment variables for Ant and Maven.
只有在为 Ant 和 Maven 添加更多环境变量后,我才遇到此问题。 This is the summary:
这是摘要:
Install Windows XP SP3 --> Install JDK --> Install Android SDK --> Open SDK Manager and it works, --> append some more "bin" path of Ant and Maven in "path" variable --> Open SDK Manager and it doesn't open --> I rolled back by removing all environment variables --> SDK Manager still no opens: That's very strange! Install Windows XP SP3 --> Install JDK --> Install Android SDK --> Open SDK Manager and it works, --> append some more "bin" path of Ant and Maven in "path" variable --> Open SDK Manager并且它没有打开 --> 我通过删除所有环境变量回滚 --> SDK 管理器仍然没有打开:这很奇怪! --> It is stranger when I reinstall JDK and Android SDK, it still no opens!
--> 重装JDK和Android SDK就奇怪了,还是打不开! :(
:(
Step #1: Open up a command prompt.步骤#1:打开命令提示符。
Step #2: Use the cd
command to move to wherever you installed your Android SDK.第 2 步:使用
cd
命令移动到安装 Android SDK 的位置。
Step #3: Run tools\android
.步骤#3:运行
tools\android
。
If that does not work, you should have information dumped to the command prompt that will help you diagnose your setup problem.如果这不起作用,您应该将信息转储到命令提示符,以帮助您诊断设置问题。
I was getting the error "C:\Program is not recognized as an internal or external command" Followed by loads of "unable to copy file" Followed by something about Android_SWT not being able to be found.我收到错误“C:\Program 未被识别为内部或外部命令”,然后是“无法复制文件”的负载,然后是有关 Android_SWT 无法找到的内容。
The way I fixed the problem on my system (Windows 8, 64 bit, JDK 7) was:我在系统(Windows 8、64 位、JDK 7)上解决问题的方法是:
ANDROID SDK DIRECTORY\tools\android.bat
in your favorite text editorANDROID SDK DIRECTORY\tools\android.bat
java_exe= call lib\find_java.bat
(it's split over 2 lines)java_exe= call lib\find_java.bat
(分为 2 行)java_exe="%JAVA_HOME%\java.exe"
java_exe="%JAVA_HOME%\java.exe"
tools\android.bat
tools\android.bat
The problem was that the the space in the path was not being handled correctly.问题是路径中的空间没有得到正确处理。 By wrapping the path in quotation marks, the space is then correctly catered for.
通过将路径括在引号中,然后正确地满足空间。
I had the same problem.我有同样的问题。
when i run \tools\android.bat, i got the exception: Exception in thread main
当我运行 \tools\android.bat 时,我得到了异常:线程
main
线程中的异常
java.lang.NoClassDefFoundError: com/android/sdkmanager/Main
My resolved method:我解决的方法:
\tools\android.bat
\tools\android.bat
"%jar_path%;%swt_path%\swt.jar"
"%jar_path%;%swt_path%\swt.jar"
"%tools_dir%\%jar_path%;%tools_dir%\%swt_path%\swt.jar"
"%tools_dir%\%jar_path%;%tools_dir%\%swt_path%\swt.jar"
SDK Manager.exe
againSDK Manager.exe
After a lot of searching and trying different methods, I found the solution to the problem at my end: SDK
Manager couldn't find my profile directory.经过大量搜索和尝试不同的方法,我最终找到了问题的解决方案:
SDK
Manager 找不到我的配置文件目录。 After setting the environment variable ANDROID_SDK_HOME
(I set mine to a newly created folder C:\Android), SDK
manager started no prob.设置环境变量
ANDROID_SDK_HOME
后(我将我的设置为新创建的文件夹 C:\Android), SDK
管理器启动没有问题。
I have Wondows 7 64 bit (MacBook Pro), installed both Java JDK x86 and x64 with JAVA_HOME
pointing at x32 during installation of Android SDK, later after installation JAVA_HOME
pointing at x64. I have Wondows 7 64 bit (MacBook Pro), installed both Java JDK x86 and x64 with
JAVA_HOME
pointing at x32 during installation of Android SDK, later after installation JAVA_HOME
pointing at x64.
My problem was that Android SDK manager didn't launch, cmd window just flashes for a second and that's it.我的问题是 Android SDK 管理器没有启动,cmd Z05B8C74CBD96FBF2DE4C1A352702 只闪烁它。 Like many others looked around and tried many suggestions with no juice!
像许多其他人一样环顾四周,尝试了许多没有果汁的建议!
My solution was in adding bin the JAVA_HOME
path:我的解决方案是在
JAVA_HOME
路径中添加 bin:
C:\Program Files\Java\jdk1.7.0_09\bin
C:\Program Files\Java\jdk1.7.0_09\bin
instead of what I entered for the start:而不是我一开始输入的内容:
C:\Program Files\Java\jdk1.7.0_09
C:\Program Files\Java\jdk1.7.0_09
Hope this helps others.... good luck!希望这对其他人有所帮助....祝你好运!
The way I solved your last problem was by right clicking the android.bat file, and chose edit with notepad++.我解决您最后一个问题的方法是右键单击 android.bat 文件,然后选择使用 notepad++ 编辑。 I then went down to the part of the program where it had this bit of code:
然后我进入程序的一部分,它有这段代码:
cd /d %~dp0 cd /d %~dp0
It was also some other lines of code, but I deleted them.这也是其他一些代码行,但我删除了它们。 After deleting these other lines I simply just wrote(under the cd /d %~dp0):
删除这些其他行后,我只是写了(在 cd /d %~dp0 下):
cd Program Files cd 程序文件
cd java光盘 java
cd jdk1.7.0_03 cd jdk1.7.0_03
cd bin光盘盒
I dont know here you java.exe file is located but mine was at lest located there.我不知道你 java.exe 文件位于此处,但我的文件至少位于此处。
Similar to sixty9 I renamed java.exe, javaw.exe, javaws.exe (I never delete files when troubleshooting) after I created a JAVA_HOME
environment variable and added path variables.与 Sixty9 类似,在创建
JAVA_HOME
环境变量并添加路径变量后,我重命名了 java.exe、javaw.exe、javaws.exe(故障排除时我从不删除文件)。
I had installed the Java SDK on my D:\ drive ( instead of the default).我已经在我的 D:\ 驱动器上安装了 Java SDK(而不是默认)。
Create a JAVA_HOME variable: Variable Name: %JAVA_HOME%
Value: D:\Program Files\Java.
创建一个 JAVA_HOME 变量:变量名称:
%JAVA_HOME%
值: D:\Program Files\Java.
Added the following to the Path variable:将以下内容添加到Path 变量中:
%JAVA_HOME%\jre7\bin;%JAVA_HOME%\jdk1.7.0_03\bin;
Renamed java.exe
, javaw.exe
and javaws.exe
.重命名为
java.exe
、 javaw.exe
和javaws.exe
。
Restarted the system and the Android SDK
installer found my JDK and installed successfully.重新启动系统,Android
SDK
安装程序找到我的JDK并安装成功。
I ran into this problem: I'd get the error我遇到了这个问题:我会得到错误
C:\projects\Android\android-sdk-windows-1.5_r1\tools\lib>ddms
02:03:07 E/ddms: shutting down due to uncaught exception
02:03:07 E/ddms: no swt-win32-3550 or swt-win32 in swt.library.path, java.library.path or the jar file
java.lang.UnsatisfiedLinkError: no swt-win32-3550 or swt-win32 in swt.library.path, java.library.path or the j
ar file
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.C.<clinit>(Unknown Source)
at org.eclipse.swt.graphics.FontData.<init>(Unknown Source)
at com.android.ddms.PrefsDialog.setDefaults(PrefsDialog.java:221)
at com.android.ddms.PrefsDialog.init(PrefsDialog.java:150)
at com.android.ddms.Main.main(Main.java:74)
I got this solved by copying the swt file from eclipse into the tools
directory.我通过将 swt 文件从 eclipse 复制到
tools
目录中解决了这个问题。 If you search in the directory you have Eclipse installed there is an SWT dll, named something like swt-win32-<4-digits>.dll
(mine was named swt-win32-3740.dll
): I copied that into the tools directory, and everything worked after that. If you search in the directory you have Eclipse installed there is an SWT dll, named something like
swt-win32-<4-digits>.dll
(mine was named swt-win32-3740.dll
): I copied that into the tools directory ,之后一切正常。
I solved my problem opening android.bat inside sdk/tools
and setting the java_exe
property, which was empty.我解决了在
sdk/tools
中打开 android.bat 并设置空的java_exe
属性的问题。
set java_exe="C:\Program Files\Java\jre6\bin\java"
My issue was the following error on windows 7:我的问题是 windows 7 上的以下错误:
C:\dev\Android\android-sdk-windows\tools>android
[INFO] Starting Android SDK and AVD Manager
No command line parameters provided, launching UI.
See 'android --help' for operations from the command line.
Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-win32-3550 or
swt-win32 in swt.library.path, java.library.path or the jar file
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.C.<clinit>(Unknown Source)
at org.eclipse.swt.widgets.Display.<clinit>(Unknown Source)
at com.android.sdkmanager.Main.showMainWindow(Main.java:292)
at com.android.sdkmanager.Main.doAction(Main.java:276)
at com.android.sdkmanager.Main.run(Main.java:99)
at com.android.sdkmanager.Main.main(Main.java:88)
The solution was to disable McAfee 8.8.解决方案是禁用 McAfee 8.8。 Apparently some recent update is now blocking my Android environment.
显然,最近的一些更新现在阻止了我的 Android 环境。
Finally got this torterous SDK to run.终于让这个曲折的 SDK 运行起来。
When installing 32bit Java on 64bit windows system, set ANDROID_SWT to e:\android-sdk\tools\lib\x86在64位windows系统上安装32位Java时,将ANDROID_SWT设置为e:\android-sdk\tools\lib\x86
not..\x86_64不是..\x86_64
Dear Android SDK team,尊敬的 Android SDK 团队,
I genuinely hope some serious attention is being paid to these problems.我真诚地希望对这些问题给予认真的关注。 SDK should be effortless to set up.
SDK 应该很容易设置。 This is how you lose customers to other platforms where this kind of thing is a one-click ordeal.
这就是您将客户流失到其他平台的方式,在这些平台上,这种事情是一键式的考验。
I was going to buy another android device to test my game on, but after last 2 days trying to traverse the maze of your incompetence I think i'll just stick with iOS as my main development target.我打算购买另一个 android 设备来测试我的游戏,但在过去 2 天试图穿越你无能的迷宫之后,我想我会坚持使用 iOS 作为我的主要开发目标。
I solved this problem, which occured for me after manually installing the ADT (4.2/api 17) bundle on Windows 7 64 bit in C:\Program Files.我解决了这个问题,在 C:\
The steps I had to take:我必须采取的步骤:
JAVA_HOME
environment variable to the installation directory of the (64 bit) JDK, C:\Program Files\Java\jdk1.7.0_11
in my case.JAVA_HOME
环境变量设置为(64 位)JDK 的安装目录C:\Program Files\Java\jdk1.7.0_11
。None of the Solution worked for me没有一个解决方案对我有用
Just open sdk/tools/
只需打开
sdk/tools/
Edit android.bat
编辑
android.bat
Replace set java_exe="C:\Program Files\Java\jdk1.7.0_13\bin\java.exe"
//your java path替换
set java_exe="C:\Program Files\Java\jdk1.7.0_13\bin\java.exe"
//你的 java 路径
Copy the sdk manager
and avd
from any tools/lib
if its not in sdk/
base folder如果
sdk manager
和avd
不在sdk/
基本文件夹中,则从任何tools/lib
复制
I FINALLY GOT THIS WORKING AFTER 2 SOUL DESTROYING EVENINGS OF TRYING!在尝试了 2 个灵魂毁灭之夜之后,我终于得到了这个工作! IF I EVER MEET AN ANDROID SDK DEVELOPER I WILL HACK HIM TO DEATH WITH HIS OWN KEYBOARD
如果我遇到 ANDROID SDK 开发人员,我会用他自己的键盘将他砍死
Anyway, tips for getting it working on Windows 7 64 bit...无论如何,让它在 Windows 7 64 位上工作的技巧......
I suspect for me it was multiple problems as none of the suggestions worked so I will list all the things I did to finally get it working我怀疑对我来说这是多个问题,因为没有任何建议有效,所以我将列出我为最终使其正常工作所做的所有事情
1) Install the 32 BIT version of Java JDK (yes, even if you are running 64bit Windows) 1)安装32位版本的Java JDK(是的,即使你运行的是64位Windows)
2) Install both the SDK and the JDK to paths that have no spaces in (I used C:\Android and C:\Java32) 2)将 SDK 和 JDK 安装到没有空格的路径(我使用 C:\Android 和 C:\Java32)
3) In the Windows environment variables screen (System Properties > Advanced Settings > Env vars), there's two places you can enter the variables, the "User Variables" and "System variables". 3) 在 Windows 环境变量界面(系统属性>高级设置>环境变量),有两个地方可以输入变量,“用户变量”和“系统变量”。 I put them in both and included the "bin" bit in both eg
我把它们都放在了两者中,并在两者中都包含了“bin”位,例如
JAVA_HOME = C:\Java32\jdk1.8.0_20\bin
JAVA_HOME = C:\Java32\jdk1.8.0_20\bin
Path = C:\Java32\jdk1.8.0_20\bin;
路径 = C:\Java32\jdk1.8.0_20\bin; other paths should come AFTER the jdk ...
其他路径应该在jdk之后......
4) Edit the file tools\android.bat and look for the following: 4) 编辑文件 tools\android.bat 并查找以下内容:
set java_exe=
设置 java_exe=
call lib\find_java.bat
调用 lib\find_java.bat
change this to:将其更改为:
set java_exe= "C:\Java32\jdk1.8.0_20\bin\java.exe"
设置 java_exe= "C:\Java32\jdk1.8.0_20\bin\java.exe"
rem call lib\find_java.bat
rem调用 lib\find_java.bat
You can also put the "@echo off" to "@echo on" at the top of the file for debugging purposes您还可以将“@echo off”放在文件顶部的“@echo on”以进行调试
Good luck!祝你好运!
I add new environment variable "ANDROID_SDK_HOME" and set it, like my path to android SDK folder (c:/Android) and it's work!我添加新的环境变量“ANDROID_SDK_HOME”并设置它,就像我到 android SDK 文件夹(c:/Android)的路径一样,它的工作!
And if tools\android
works for you while.exe doesn't, it's probably the x64 java.如果
tools\android
对你有用,而.exe 没有,它可能是 x64 java。
It started working when i completely uninstalled JDK with JRE (shows as separate option in windows uninstal control panel applet) and android sdk and reinstalled using x86 version. It started working when i completely uninstalled JDK with JRE (shows as separate option in windows uninstal control panel applet) and android sdk and reinstalled using x86 version.
Why does it worth the time, you may ask?你可能会问,为什么值得花时间? Well, such an inconsistency obvoiusly means that amount of testing with x64 java is zero and so you can probably experience many other failures in the future.
好吧,这种不一致显然意味着使用 x64 java 的测试量为零,因此您将来可能会遇到许多其他故障。
I had this same problem and after trying a variety of things like changing the path variables I went to java.com on a whim and downloaded java, installed, and lo and behold the sdk manager worked after that. I had this same problem and after trying a variety of things like changing the path variables I went to java.com on a whim and downloaded java, installed, and lo and behold the sdk manager worked after that.
I fixed this issue by reinstalling it in Program Files, it originally tried to install it in c:/Users/.../AppData/Android/...
.我通过在 Program Files 中重新安装它来解决此问题,它最初尝试将其安装在
c:/Users/.../AppData/Android/...
中。
Mine was caused by a user permission issue that running as admin didn't seem to fix (perhaps because they call batch files?).我的问题是由于以管理员身份运行的用户权限问题似乎没有解决(也许是因为他们调用批处理文件?)。
What I did was:我所做的是:
set a new environment variable in the top user section.在顶部用户部分设置一个新的环境变量。
VARIABLE NAME: JAVA_HOME
VARIABLE VALUE: set it to the installation directory of your most recent JDK.变量名:
JAVA_HOME
变量值:将其设置为最新 JDK 的安装目录。
For me it was, C:\Program Files\Java\jdk1.7.0_13
.对我来说,它是
C:\Program Files\Java\jdk1.7.0_13
。 Run SDK Manager as administrator at least once.以管理员身份运行 SDK Manager 至少一次。 I use windows 7. This method worked for me after a lot of research.
我使用 windows 7。经过大量研究,这种方法对我有用。
What I dont understand is when using 'where java' in the command prompt it still references C:\Windows\System32\java.exe
.我不明白的是,在命令提示符中使用 'where java' 时,它仍然引用
C:\Windows\System32\java.exe
。 My SDK Manager now opens when I need it so I solved my problem.我的 SDK 管理器现在在我需要时打开,所以我解决了我的问题。
I was experiencing the UnsatisfiedLinkError on Windows 7 64-bit after installing adt-bundle-windows-x86_64-20130717.zip:在安装 adt-bundle-windows-x86_64-20130717.zip 后,我在 Windows 7 64 位上遇到了 UnsatisfiedLinkError:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-win32-3550 or swt-win32 in swt.library.path, java.library.path or the jar file
The root cause was that McAfee has a feature that blocks loading DLL's from the temporary directory.根本原因是 McAfee 具有阻止从临时目录加载 DLL 的功能。 This is a problem because android.bat copies a bunch of JAR and DLL files to a temporary directory and runs the program from there, to make it easy to upgrade the app in-place.
这是一个问题,因为 android.bat 将一堆 JAR 和 DLL 文件复制到临时目录并从那里运行程序,以便轻松升级应用程序。
This feature can be disabled, however.但是,可以禁用此功能。 You can either disable "Access Protection" altogether or only disable the feature that blocks loading DLLs from temporary folders.
您可以完全禁用“访问保护”,也可以只禁用阻止从临时文件夹加载 DLL 的功能。
I had the same issue!我遇到过同样的问题!
I had installed the ADT bundle 64-bit, so I downloaded Java 64-bit.我已经安装了 64 位的 ADT 包,所以我下载了 Java 64 位。 I messed around with paths and things, but the thing that fixed it in the end was installing Java 32-bit.
我搞砸了路径和东西,但最终修复它的是安装 Java 32 位。
The easy fix is to install both versions.简单的解决方法是安装这两个版本。 You can download them manually here .
您可以在此处手动下载它们。
Good luck!祝你好运!
When I clicked SDK Manager on Program Files or run it in cmd, nothing happened
当我在 Program Files 上单击 SDK Manager 或在 cmd 中运行它时,什么也没发生
One of your problems is Long File Names in Windows.您的问题之一是 Windows 中的长文件名。 A number of the Android tools cannot handle them.
许多 Android 工具无法处理它们。 I filed a bug report on them years ago, but I can't find it at the moment.
几年前我提交了一份关于它们的错误报告,但我现在找不到它。 I also seem to recall something about it in the INSTALL or README.
我似乎还记得 INSTALL 或 README 中有关它的一些内容。
So you should install the tools in a location without spaces.因此,您应该将工具安装在没有空格的位置。 Use something like
C:\Android\
or C:\Android-SDK\
.使用
C:\Android\
或C:\Android-SDK\
类的东西。
@Steve and @MeatPopsicle already mentioned spaces in the pathames, but it can't be overstated. @Steve 和 @MeatPopsicle 已经在路径中提到了空格,但不能夸大其词。
Actually a black cmd window appears and disappears a milliseconds.
实际上,黑色 cmd window 出现并消失一毫秒。
... Even I set path for ANDROID_SWT...即使我为 ANDROID_SWT 设置路径
Out of curiosity, where did ANDROID_SWT
come from?出于好奇,
ANDROID_SWT
是从哪里来的?
I know Android does use ANDROID_HOME
, ANDROID_SDK_ROOT
and ANDROID_NDK_ROOT
, and the last two should both be set because the tools use them internally.我知道 Android确实使用
ANDROID_HOME
, ANDROID_SDK_ROOT
和ANDROID_NDK_ROOT
,最后两个都应该设置,因为工具在内部使用它们。 Here's the reference on ANDROID_SDK_ROOT
and ANDROID_NDK_ROOT
: Recommended NDK Directory?这是
ANDROID_SDK_ROOT
和ANDROID_NDK_ROOT
的参考: 推荐的 NDK 目录? . .
So you should set the three environmental variables (after ensuring the installation directory does not contain spaces):所以你应该设置三个环境变量(确保安装目录不包含空格后):
ANDROID_HOME
ANDROID_SDK_ROOT
ANDROID_NDK_ROOT
ANDROID_HOME
is set to the directory where the hidden directory .android
is. ANDROID_HOME
设置为隐藏目录.android
所在的目录。
ANDROID_SDK_ROOT
is set to the directory where the SDK is installed, like C:\Android-SDK\
. ANDROID_SDK_ROOT
设置为 SDK 的安装目录,如C:\Android-SDK\
。
ANDROID_NDK_ROOT
is set to the directory where the NDK is installed, like C:\Android-NDK\
. ANDROID_NDK_ROOT
设置为安装 NDK 的目录,如C:\Android-NDK\
。 If its not installed, then don't set it.如果未安装,则不要设置它。
Once you have ANDROID_SDK_ROOT
set, you can put %ANDROID_SDK_ROOT%\tools
and %ANDROID_SDK_ROOT%\platform-tools
on PATH.设置
ANDROID_SDK_ROOT
后,您可以将%ANDROID_SDK_ROOT%\tools
和%ANDROID_SDK_ROOT%\platform-tools
放在 PATH 上。 Then, you can drop into a command line and issue something like this (and it just works):然后,您可以进入命令行并发出类似这样的命令(它只是有效):
adb list
find_java.exe doesn't seem to like the openjdk "java -version" output. find_java.exe 似乎不喜欢 openjdk "java -version" output。 I edited find_java.bat like this:
我像这样编辑了 find_java.bat:
for /f %%a in ('%~dps0\find_java.exe -s') do set java_exe=%%a
set java_exe="C:\Program Files (x86)\AdoptOpenJDK\jdk-8.0.242.08-hotspot\bin\java.exe"
rem ...
for /f %%a in ('%~dps0\find_java.exe -s -w') do set javaw_exe=%%a
set javaw_exe="C:\Program Files (x86)\AdoptOpenJDK\jdk-8.0.242.08-hotspot\bin\javaw.exe"
Had the same problem and tried everything I browse in several forums till I found a clue, then finally solved the problem.遇到同样的问题,尝试了我在几个论坛中浏览的所有内容,直到找到线索,然后终于解决了问题。
Basically I installed the SDK and worked ok, then my Windows Vista crashed, on restart I run SDK again but it only opened a CMD window which closed immediately. Basically I installed the SDK and worked ok, then my Windows Vista crashed, on restart I run SDK again but it only opened a CMD window which closed immediately.
So here's a list of useless things I did:所以这里列出了我做过的无用的事情:
At this point I was seriously considering start learning objetive-c was not a bad idea, finally I did this:此时我正在认真考虑开始学习objetive-c并不是一个坏主意,最后我做到了:
it WORKED.!有效。! I'm not sure though if is necessary to uninstall SDK (since I had again to download all packages & platforms) and just clear the temp folder.
我不确定是否有必要卸载 SDK (因为我不得不再次下载所有软件包和平台)并清除临时文件夹。
Hope this helps.希望这可以帮助。
I had the same problem, running X64 Java (1.7.0_03-b05)
.我遇到了同样的问题,运行
X64 Java (1.7.0_03-b05)
。 Even though I had both C:\Program Files\Java\jre7\bin
and C:\Program Files\Java\jdk1.7.0_03\bin
listed in my path, it wouldn't start - just flashed a command prompt.即使我的路径中同时列出了
C:\Program Files\Java\jre7\bin
和C:\Program Files\Java\jdk1.7.0_03\bin
,它也不会启动 - 只是闪现了一个命令提示符。
The tools\lib\find_java.bat
file was reporting that it was attempting to run C:\Windows\system32\java.exe
but failed. tools\lib\find_java.bat
文件报告它试图运行C:\Windows\system32\java.exe
但失败。 Huh?嗯? I checked, and found outdated copies of
java.exe
, javaw.exe
and javaws.exe
in my C:\Windows\system32
.我查了一下,在我的
C:\Windows\system32
中发现了java.exe
、 javaw.exe
和javaws.exe
的过时副本。 How did those get there, I didn't put them there!那些是怎么到那里的,我没有把它们放在那里!
I deleted those three files from C:\Windows\system32
and the problem was fixed.我从
C:\Windows\system32
中删除了这三个文件,问题就解决了。
Thinking about it, the problem likely would have been fixed by making sure that C:\Program Files\Java\jre7\bin
and C:\Program Files\Java\jdk1.7.0_03\bin
were at the START of my PATH variable instead of tacked onto the end.考虑一下,问题可能已经通过确保
C:\Program Files\Java\jre7\bin
和C:\Program Files\Java\jdk1.7.0_03\bin
位于我的 PATH 变量的开头来解决的最后。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.