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

            最近在调试一个java项目的时候,发现报了这个错:The JRE could not be found. Edit the server and change the JRE location.找了好久,终于调好程序了。现把这个过程说明如下:



选择Server,然后   installed runtimes -> Tomcat5(配置的服务器中间件名称) -> edit -> 手动修改Jre -> finish。

转载于:https://www.cnblogs.com/cmderq/p/9130907.html

  • 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、付费专栏及课程。

余额充值