簡體   English   中英

typesafe安裝:未安裝或找到JDK,即使它們是

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

我安裝了JDK(1.7.0.3和1.8.0)。 我已經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

我已經下載了類型安全激活器,並在我的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.

我在Windows上遇到了類似的問題......“C:\\ Program”未被識別為內部或外部命令

將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