Build path entry is missing: org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.

本文介绍了解决使用JDBC连接数据库时遇到的版本冲突问题。主要原因是JRE版本与工程所需版本不一致,通过调整工程配置中的JRE版本,可以有效避免此问题。

今天在使用jdbc链接数据库时遇到这个问题,为了记录下次不犯错,这个只是JRE问题,你所使用的和工程的不同版本,只需更正版本

右击你所建的工程–>Built Path–>Configure Built Path–>Libraries

![在这里插入图片描述](https://img-blog.csdnimg.cn/20190313202550891.PNG?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3N0YXJrMTM=,size_16,color_FFFFFF,t_70
在这里插入图片描述
这里会有一个红叉(我这里已经修改了)鼠标左点击,

在这里插入图片描述
然后Edit,选择你JER的版本即可

我的classpath<?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-20"> <attributes> <attribute name="maven.pomderived" value="true"/> <attribute name="module" value="true"/> <attribute name="add-opens" value="jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED:jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED:jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED:jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED:jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED:jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED"/> </attributes> </classpathentry> <classpathentry kind="src" path="src"/> <classpathentry kind="lib" path="D:\projects\lczc\assistive.tiangu.net\WebRoot\WEB-INF\lib\pdsl.jar"/> <classpathentry kind="lib" path="d:/Projects/LCZC/assistive.tiangu.net/WebRoot/WEB-INF/lib/c3p0-0.9.1.1.jar"/> <classpathentry kind="lib" path="d:/Projects/LCZC/assistive.tiangu.net/WebRoot/WEB-INF/lib/commons-codec-1.3.jar"/> <classpathentry kind="lib" path="d:/Projects/LCZC/assistive.tiangu.net/WebRoot/WEB-INF/lib/commons-collections4-4.4.jar"/> <classpathentry kind="lib" path="d:/Projects/LCZC/assistive.tiangu.net/WebRoot/WEB-INF/lib/commons-fileupload-1.2.1.jar"/> <classpathentry kind="lib" path="d:/Projects/LCZC/assistive.tiangu.net/WebRoot/WEB-INF/lib/commons-io-2.5.jar"/> <classpathentry kind="lib" path="d:/Projects/LCZC/assistive.tiangu.net/WebRoot/WEB-INF/lib/commons-lang-2.4.jar"/> <classpathentry kind="lib" path="d:/Projects/LCZC/assistive.tiangu.net/WebRoot/WEB-INF/lib/dom4j-2.1.3.jar"/> <classpathentry kind="lib" path="d:/Projects/LCZC/assistive.tiangu.net/WebRoot/WEB-INF/lib/fastjson-1.2.41.jar"/> <classpathentry kind="lib" path="d:/Projects/LCZC/assistive.tiangu.net/WebRoot/WEB-INF/lib/jaxen-1.1.1.jar"/> <classpathentry kind="lib" path="d:/Projects/LCZC/assistive.tiangu.net/WebRoot/WEB-INF/lib/lczc.jar"/> 是这样的要<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:mvc="http://www.springframework.org/schema/mvc" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd"> <!-- 扫描controller包 --> <context:component-scan base-package="com.example.controller"/> <!-- 启用Spring MVC注解 --> <mvc:annotation-driven/> </beans> 这个?
最新发布
12-16
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值