经典错误重现->Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to

经常碰到这种错误,错误代码如下:

Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to run STS,No Java Virtual machine was found after searching the following locations:..............................................javaw.exe
in your current PATH

解决方案:根据错误发现Spring Tool Suite找不到系统中目前可以使用的JRE(Java Runtime Environment,Java运行时环境),找不到的原因就是在系统没有对安装的JDK或者JRE在当前系统中进行环境变量的配置,还有一种情况就是配置了,但是错误的或者不是规范的方式导致STS无法正常找到JRE进行正常的启动。

  • 第一步:找到Java安装目录,例如我的安装目录是:C:\ProSoft\Java\jdk1.7.0_72

  • 第二步:计算机-->属性--->高级系统设置--->环境变量

1).在用户变量中新建如下图:

2).在系统变量中编辑Path变量如下图:

3).检验是否安装成功 CMD java -version 如下图:

4).Java环境配置完成,检验Spring Tool Suite是否可以正常!自己动手吧。。。

时间: 2024-10-25 08:30:56

经典错误重现->Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to的相关文章

eclipse 启动报错,A Java RunTime Environment (JRE) or Java Development Kit (JDK) must

A Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No java virtual machine was found after searching the following locations:D:\Program   Files\eclipse\jre\bin\javaw.exe javaw.exe 加了环境变量也不行 错误就出在

A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations: /usr/local/eclipse/

linux系统下jdk是已经安装好的情况之下软件出现 A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations: /usr/local/eclipse/jre/bin/java java in yo

Ubuntu Eclipse启动时报错:A Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No java virtual machine was found after searching the following locations:

此问题起于我在Ubuntu1004上装了两个版本的eclipse:Galieo+helios:卸载前者后出现启动不了eclipse的问题:在网上找了下,可以按如下过程进行解决: Eclipse 3.6 在 Ubuntu 10.04 下会出现一个很奇怪的现象,我没有经过测试,无法确定是Ubuntu 10.04 还是 JDK 还是 Eclipse本身造成的. 这个现象是: 可以在终端顺利启动Eclipse,但是鼠标双击,或者用起动器启动就会出现如下的内容: A Java RunTime Enviro

adt bundle启动eclipse出错:A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse.

在ubuntu12.04安装好jdk,然后设置好环境变量,然后继续安装好adt bundle 在终端进入adt bundle下的eclipse启动eclipse时没问题 但是从图形界面进入adt bundle下的eclipse启动eclipse时出错,提示如下: A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virt

Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclip

本文解决的是在普通用户下执行eclipse可行但是切换到root之后就出现的问题 Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No java virtual machine was found after searching the following locations:- 解决办法是在终端进入你的eclipse目录,然后输入: m

A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run STS

在fedora中,已经安装了jdk,但打开sts的时候,仍然出现了这个警告,如下: A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run STS. No Java virtual machine was found after searching the following locations: /home/carlos/Documents/soft/sts

eclipse启动报错A Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse.

Eclipse启动时报错:A Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No java virtual machine was found after searching the following locations:… 此问题起于我在Ubuntu1004上装了两个版本的eclipse:Galieo+helios:卸载前者后出现启

A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be avail

A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be avail Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No java virtual machine was found after searching the following locat

ubuntu myeclipse 启动时提示 A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be avail ....

jdk已经安装过但是启动eclipse时提示“A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be avail ” 解决方法 终端进入你的eclipse目录,然后输入: mkdir jrecd jre ln -s 你的JDK目录/bin bin