简体   繁体   English

Typesafe激活器:未安装或无法找到Java JDK

[英]Typesafe activator: Java JDK not installed or can't be found

I am trying to run the typesafe activator on Windows7 (32bit).I have JDK 1.8 installed. 我试图在Windows7(32位)上运行typesafe激活器。我安装了JDK 1.8。 It keeps saying I don't have a valid JDK installation: 它一直说我没有有效的JDK安装:

A Java JDK is not installed or can't be found. 未安装或无法找到Java JDK。

Please go to http://www.oracle.com/technetwork/java/javase/downloads/index.html and download a valid Java JDK and install before running Activator. 请访问http://www.oracle.com/technetwork/java/javase/downloads/index.html并下载有效的Java JDK并在运行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. 如果您认为此消息有误,请检查您的环境变量,以查看“java.exe”和“javac.exe”是否可通过JAVA_HOME或PATH获得。

I had a similar problem on Windows 7 64b. 我在Windows 7 64b上遇到了类似的问题。 The problem solved by changing the installed directory from "C:\\Program Program..." to a directory without space like "c:\\java". 通过将安装目录从“C:\\ Program Program ...”更改为没有空格的目录(如“c:\\ java”)来解决问题。

So the solution is: Installing Java to a path without spaces. 所以解决方案是:将Java安装到没有空格的路径上。

I hope it can help. 我希望它可以提供帮助。

Put the Activator Directory (not the Java Directory) where it's path does not contain spaces! 将Activator Directory(不是Java Directory)放在其路径不包含空格的位置! (ie C:\\Program Files\\ ... is NOT valid) (即C:\\ Program Files \\ ...无效)

Also place the Java PATH before all other paths in your Environment Variables. 还要将Java PATH放在Environment Variables中的所有其他路径之前。

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

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