Typical installation: JDK is not installed or not found, even if they

I have JDK installed (both 1.7.0.3 and 1.8.0). I added the path C:\Program Files\Java\jdk1.7.0_03\binor C:\Program Files\Java\jdk1.8.0alternately, and also added the system variable JAVA_HOMEwith C:\Program Files\Java\jdk1.7.0_03or, C:\Program Files\Java\jdk1.8.0respectively.

I downloaded the types activator with the game and extracted it to my disk C:\. Then, when I try to start it using activator.bator with a command activator uifrom CMD, the following errors are displayed:

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.

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.
+4
source share
2 answers

I had a similar problem on Windows ... 'C: \ Program' is not recognized as an internal or external command

Java , JAVA_HOME .

+5

:  1.  3. .bat  4. " ui" "  5. enter

0

Source: https://habr.com/ru/post/1534703/


All Articles