The JRE could not be found. Edit the server and change the JRE location.

先装jdk1.5再装1.6或者先装1.6卸载再装1.5报错:The JRE could not be found. Edit the server and change the JRE location.

会改变工程的settings文件和.class文件

 

解决办法1:把你的eclipse工作文件删掉,重新安装建立eclipse/workspace将里面的settings和.calss文件导入。

解决办法2:还有可能改变你工程中的某个类,所以建议把你的工程重新导入,工程必须是你要转换的jdk下运行过的

 

转换jdk版本肯定会影响settings文件和.class文件所以要注意这个

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
The "The specified JRE installation does not exist" exception typically occurs when there is a mismatch between the Java Runtime Environment (JRE) configuration in your project and the actual JRE installation on your system. Here are a few possible reasons and solutions for this issue: 1. Incorrect JRE configuration in Eclipse: - Open the project properties in Eclipse by right-clicking on the project and selecting "Properties". - Go to "Java Build Path" and check the "Libraries" tab. - Ensure that the correct JRE is selected. If not, click on "Add Library" and select the appropriate JRE. - Clean and rebuild your project. 2. Incorrect JRE configuration in Tomcat: - Open the Tomcat server configuration in Eclipse by double-clicking on the server in the "Servers" view. - Go to the "Java" tab and check the "JRE" section. - Ensure that the correct JRE is selected. If not, click on "Installed JREs" and add the appropriate JRE. - Restart the Tomcat server. 3. Multiple JRE installations: - Check if you have multiple JRE installations on your system. - Make sure that the JRE you are using for your project is the same as the one you have installed and configured in Eclipse and Tomcat. 4. Environment variables: - Check if the JAVA_HOME environment variable is set correctly. - Ensure that the PATH environment variable includes the bin directory of the JRE installation. 5. Reinstalling JRE: - If none of the above solutions work, try reinstalling the JRE and make sure to configure it correctly in Eclipse and Tomcat.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值