unbound classpath container:'JRE System Library [jre1.6.0_11]' in project '工程名'

本文解决了项目导入时出现的JRE未绑定错误,详细介绍了如何检查并更改项目配置中的JDK版本,确保与IDE使用版本一致。

在导入项目时遇到一个问题,工程报unbound classpath container:'JRE System Library [jre1.6.0_11]' in project '项目名' 错,启动的时候还起不来会报一些加载不到类的错误,还好通过网上找到了解决的方法,所以记录下来。

错误图如下:

翻译;未绑定的类路径容器: JRE 系统库 [jre1.6.0_11] 的项目 'abc'

也就是说项目的JDK和IDE使用的JDK版本不一致,造成未绑定的状态

-----------解决方法-----------------------------------

在工程上单机右键,选择


选择


再选择有问题的JDK,我这里还里还多了个tomcat,后面括号中都有unbound的提示


Edit后选择正确的jre

/etc/unbound/unbound.conf:11: error: expected deny, refuse, deny_non_local, refuse_non_local, allow, allow_setrd, allow_snoop or allow_cookie as access control action /etc/unbound/unbound.conf:11: error: stray '"' /etc/unbound/unbound.conf:11: error: unknown keyword '/etc/unbound' /etc/unbound/unbound.conf:11: error: stray '"' read /etc/unbound/unbound.conf failed: 4 errors in configuration file [1759648528] unbound[1:0] fatal error: Could not read config file: /etc/unbound/unbound.conf. Maybe try unbound -dd, it stays on the commandline to see more errors, or unbound-checkconf /etc/unbound/unbound.conf:11: error: expected deny, refuse, deny_non_local, refuse_non_local, allow, allow_setrd, allow_snoop or allow_cookie as access control action /etc/unbound/unbound.conf:11: error: stray '"' /etc/unbound/unbound.conf:11: error: unknown keyword '/etc/unbound' /etc/unbound/unbound.conf:11: error: stray '"' read /etc/unbound/unbound.conf failed: 4 errors in configuration file [1759648530] unbound[1:0] fatal error: Could not read config file: /etc/unbound/unbound.conf. Maybe try unbound -dd, it stays on the commandline to see more errors, or unbound-checkconf /etc/unbound/unbound.conf:11: error: expected deny, refuse, deny_non_local, refuse_non_local, allow, allow_setrd, allow_snoop or allow_cookie as access control action /etc/unbound/unbound.conf:11: error: stray '"' /etc/unbound/unbound.conf:11: error: unknown keyword '/etc/unbound' /etc/unbound/unbound.conf:11: error: stray '"' read /etc/unbound/unbound.conf failed: 4 errors in configuration file [1759648531] unbound[1:0] fatal error: Could not read config file: /etc/unbound/unbound.conf. Maybe try unbound -dd, it stays on the commandline to see more errors, or unbound-checkconf /etc/unbound/unbound.conf:11: error: expected deny, refuse, deny_non_local, refuse_non_local, allow, allow_setrd, allow_snoop or allow_cookie as access control action /etc/unbound/unbound.conf:11: error: stray '"' /etc/unbound/unbound.conf:11: error: unknown keyword '/etc/unbound' /etc/unbound/unbound.conf:11: error: stray '"' read /etc/unbound/unbound.conf failed: 4 errors in configuration file [1759648532] unbound[1:0] fatal error: Could not read config file: /etc/unbound/unbound.conf. Maybe try unbound -dd, it stays on the commandline to see more errors, or unbound-checkconf /etc/unbound/unbound.conf:11: error: expected deny, refuse, deny_non_local, refuse_non_local, allow, allow_setrd, allow_snoop or allow_cookie as access control action /etc/unbound/unbound.conf:11: error: stray '"' /etc/unbound/unbound.conf:11: error: unknown keyword '/etc/unbound' /etc/unbound/unbound.conf:11: error: stray '"' read /etc/unbound/unbound.conf failed: 4 errors in configuration file [1759648534] unbound[1:0] fatal error: Could not read config file: /etc/unbound/unbound.conf. Maybe try unbound -dd, it stays on the commandline to see more errors, or unbound-checkconf /etc/unbound/unbound.conf:11: error: expected deny, refuse, deny_non_local, refuse_non_local, allow, allow_setrd, allow_snoop or allow_cookie as access control action /etc/unbound/unbound.conf:11: error: stray '"' /etc/unbound/unbound.conf:11: error: unknown keyword '/etc/unbound' /etc/unbound/unbound.conf:11: error: stray '"' read /etc/unbound/unbound.conf failed: 4 errors in configuration file [1759648536] unbound[1:0] fatal error: Could not read config file: /etc/unbound/unbound.conf. Maybe try unbound -dd, it stays on the commandline to see more errors, or unbound-checkconf /etc/unbound/unbound.conf:11: error: expected deny, refuse, deny_non_local, refuse_non_local, allow, allow_setrd, allow_snoop or allow_cookie as access control action /etc/unbound/unbound.conf:11: error: stray '"' /etc/unbound/unbound.conf:11: error: unknown keyword '/etc/unbound' /etc/unbound/unbound.conf:11: error: stray '"' read /etc/unbound/unbound.conf failed: 4 errors in configuration file [1759648540] unbound[1:0] fatal error: Could not read config file: /etc/unbound/unbound.conf. Maybe try unbound -dd, it stays on the commandline to see more errors, or unbound-checkconf /etc/unbound/unbound.conf:11: error: expected deny, refuse, deny_non_local, refuse_non_local, allow, allow_setrd, allow_snoop or allow_cookie as access control action /etc/unbound/unbound.conf:11: error: stray '"' /etc/unbound/unbound.conf:11: error: unknown keyword '/etc/unbound' /etc/unbound/unbound.conf:11: error: stray '"' read /etc/unbound/unbound.conf failed: 4 errors in configuration file [1759648548] unbound[1:0] fatal error: Could not read config file: /etc/unbound/unbound.conf. Maybe try unbound -dd, it stays on the commandline to see more errors, or unbound-checkconf /etc/unbound/unbound.conf:11: error: expected deny, refuse, deny_non_local, refuse_non_local, allow, allow_setrd, allow_snoop or allow_cookie as access control action /etc/unbound/unbound.conf:11: error: stray '"' /etc/unbound/unbound.conf:11: error: unknown keyword '/etc/unbound' /etc/unbound/unbound.conf:11: error: stray '"' read /etc/unbound/unbound.conf failed: 4 errors in configuration file [1759648561] unbound[1:0] fatal error: Could not read config file: /etc/unbound/unbound.conf. Maybe try unbound -dd, it stays on the commandline to see more errors, or unbound-checkconf
最新发布
10-06
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值