简体   繁体   English

typesafe安装:未安装或找到JDK,即使它们是

[英]typesafe installation: JDK not installed or found, even if they are

I have JDK (both 1.7.0.3 and 1.8.0) installed. 我安装了JDK(1.7.0.3和1.8.0)。 I have added path C:\\Program Files\\Java\\jdk1.7.0_03\\bin or C:\\Program Files\\Java\\jdk1.8.0 alternately and also have added system variable JAVA_HOME with C:\\Program Files\\Java\\jdk1.7.0_03 or C:\\Program Files\\Java\\jdk1.8.0 respectively. 我已经C:\\Program Files\\Java\\jdk1.7.0_03\\bin添加了路径C:\\Program Files\\Java\\jdk1.7.0_03\\binC:\\Program Files\\Java\\jdk1.8.0并且还添加了系统变量JAVA_HOMEC:\\Program Files\\Java\\jdk1.7.0_03C:\\Program Files\\Java\\jdk1.8.0

I have downloaded typesafe activator with play, and extracted it in my C:\\ drive. 我已经下载了类型安全激活器,并在我的C:\\驱动器中提取它。 Then when I try to run it by activator.bat or by command activator ui from CMD the following error(s) are shown: 然后当我尝试通过activator.bat或来自CMD的命令activator ui运行它时,会显示以下错误:

C:\activator-1.0.13>activator ui
'"C:\Program Files\Java\jdk1.8.0\bin\java.exe" -version 2>&1' is not recognized
as an internal or external command,
operable program or batch file.
'"C:\Program Files\Java\jdk1.8.0\bin\javac.exe" -version 2>&1' is not recognized
 as an internal or external command,
operable program or batch file.

A Java JDK is not installed or can't be found.
JAVA_HOME = "C:\Program Files\Java\jdk1.8.0"

Please go to
  http://www.oracle.com/technetwork/java/javase/downloads/index.html
and download a valid Java JDK and install before running Activator.

If you think this message is in error, please check
your environment variables to see if "java.exe" and "javac.exe" are
available via JAVA_HOME or PATH.

I am using MS Windows 7. 我正在使用MS Windows 7。

Additional information: 附加信息:

C:\activator-1.0.13>javac -version
javac 1.8.0

C:\activator-1.0.13>java -version
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)

C:\activator-1.0.13>activator ui
'"C:\Program Files\Java\jdk1.8.0\bin\java.exe" -version 2>&1' is not recognized
as an internal or external command,
operable program or batch file.
'"C:\Program Files\Java\jdk1.8.0\bin\javac.exe" -version 2>&1' is not recognized
 as an internal or external command,
operable program or batch file.

A Java JDK is not installed or can't be found.
JAVA_HOME = "C:\Program Files\Java\jdk1.8.0"

Please go to
  http://www.oracle.com/technetwork/java/javase/downloads/index.html
and download a valid Java JDK and install before running Activator.

If you think this message is in error, please check
your environment variables to see if "java.exe" and "javac.exe" are
available via JAVA_HOME or PATH.

I was having a similar problem on Windows... 'C:\\Program' is not recognized as an internal or external command 我在Windows上遇到了类似的问题......“C:\\ Program”未被识别为内部或外部命令

Installing Java to a path without spaces and using that as my JAVA_HOME fixed the problem for me. 将Java安装到没有空格的路径并使用它作为我的JAVA_HOME解决了我的问题。

这对我有用:1。以管理员身份打开命令提示符3.使用activator.bat导航到该文件夹​​4.键入'activator ui',不要输入'5.按Enter键

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

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