Android sdk 秒退 win8解决思路
Android sdk 秒退 win8
前两天装了win8 今天开始配置Java和eclipse都很正常包括ADT插件 但是装完installer_r20.0.3-windows.exe 也检测的到jdk了装完运行出来cmd窗口然后秒退 不能运行~已经重装好多次了 求解啊 要不作业不能做了~
------解决方案--------------------
前两天装了win8 今天开始配置Java和eclipse都很正常包括ADT插件 但是装完installer_r20.0.3-windows.exe 也检测的到jdk了装完运行出来cmd窗口然后秒退 不能运行~已经重装好多次了 求解啊 要不作业不能做了~
------解决方案--------------------
D:\Program Files\android-sdk-windows\tools\lib这个目录下修改 find_java.bat为
@echo off
rem Copyright (C) 2007 The Android Open Source Project
rem
rem Licensed under the Apache License, Version 2.0 (the "License");
rem you may not use this file except in compliance with the License.
rem You may obtain a copy of the License at
rem
rem http://www.apache.org/licenses/LICENSE-2.0
rem
rem Unless required by applicable law or agreed to in writing, software
rem distributed under the License is distributed on an "AS IS" BASIS,
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
rem See the License for the specific language governing permissions and
rem limitations under the License.
rem This script is called by the other batch files to find a suitable Java.exe
rem to use. The script changes the "java_exe" env variable. The variable
rem is left unset if Java.exe was not found.
rem Useful links:
rem Command-line reference:
rem http://technet.microsoft.com/en-us/library/bb490890.aspx
rem Check we have a valid Java.exe in the path. The return code will
rem be 0 if the command worked or 9009 if the exec failed (program not found).
rem Java itself will return 1 if the argument is not understood.
set java_exe=java.exe
rem search it in the path and verify we can execute it
for %%a in (%java_exe%) do set java_exe=%%~s$PATH:a
if not exist %java_exe% goto SearchForJava
%java_exe% -version 2>nul
if ERRORLEVEL 1 goto SearchForJava
goto :SearchJavaW
rem ---------------
:SearchForJava
rem We get here if the default %java_exe% was not found in the path.
rem Search for an alternative in %ProgramFiles%\Java\*\bin\java.exe
echo.
echo WARNING: Java not found in your path.