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

时间:2014-04-02 18:39:12

标签: java jvm typesafe

我安装了JDK(1.7.0.3和1.8.0)。我已经交替添加了路径C:\Program Files\Java\jdk1.7.0_03\binC:\Program Files\Java\jdk1.8.0,并且还分别添加了JAVA_HOMEC:\Program Files\Java\jdk1.7.0_03的系统变量C:\Program Files\Java\jdk1.8.0

我已经下载了类型安全激活器,并在我的C:\驱动器中提取了它。然后当我尝试通过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.

我正在使用MS Windows 7。

其他信息:

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.

2 个答案:

答案 0 :(得分:5)

我在Windows上遇到了类似的问题...... ' C:\ PROGRAM'不被视为内部或外部命令

将Java安装到没有空格的路径并将其用作我的JAVA_HOME为我解决了问题。

答案 1 :(得分:0)

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