在Java更新之后,Eclipse导入无法解析 [英] Eclipse the import cannot be resolved after Java update

查看:165
本文介绍了在Java更新之后,Eclipse导入无法解析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用hibernate的类,我已经将所有需要的jar包含到classpath中,并在Java更新之前工作。但是现在eclipse表明它不能解决一些hibernate导入。什么可以解决这个问题?

  import org.hibernate.SessionFactory; 
import org.hibernate.cfg.Configuration;


解决方案

如果输入(Ctrl + shift + t)或者打开类型资源管理器并键入SessionFactory或配置Eclipse找到它们?如果没有,那么确定你在.jar文件中有一些问题。尝试删除并替换它们。



顺便说一句,您使用的是Mac或PC?


I have class that uses hibernate, I have included all required jars to classpath and class worked before Java updated itself. But now eclipse shows that it cannot resolve some hibernate imports. What could be solution to this?

import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

解决方案

If you type (Ctrl + shift + t), or open the Type Explorer and type SessionFactory or Configuration does Eclipse find them? If not, then for sure you have some problems in the .jar files. Try to delete and replace them.

By the way are you using a Mac or PC?

这篇关于在Java更新之后,Eclipse导入无法解析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆