could not find java se runtime environment
程序员文章站
2022-04-20 08:29:02
...
运行一个小程序提示could not find java se runtime environment,机器上有java环境,并且配置了JAVA_HOME环境变量,经过检查发现他是去注册表中查找java的相关信息。于是将下面信息导入到注册表即可:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft]
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit]
"CurrentVersion"="1.8"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.8]
"JavaHome"="D:\\Program Files\\Java\\jdk"
"MicroVersion"="0"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.8.0_152]
"JavaHome"="D:\\Program Files\\Java\\jdk"
"MicroVersion"="0"
JAVA的版本为:1.8.0_152,安装路径为:D:/Program Files/Java/jdk.
上一篇: vim的一些常见的操作
推荐阅读
-
Java Runtime Environment怎么安装 JRE安装详细图文教程
-
A Java Runtime Environment(JRE) or Java Development Kit……的解决方法
-
【J2SE】java.lang.NoClassDefFoundError: Could not initialize class xxx 原因
-
clipse打开时出错报 A java runtime Environment(JRE) or java D
-
clipse打开时出错报 A java runtime Environment(JRE) or java D
-
ubuntu 打开eclipse出现A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be ... 解决方法(转载)
-
JNA方式调用dll报错:A fatal error has been detected by the Java Runtime Environment:
-
rocketmq 解决:There is insufficient memory for the Java Runtime Environment to continue
-
This application requires a Java Runtime environment 1.8.0
-
There is insufficient memory for the Java Runtime Environment to continue