new*_*bie 5 java eclipse hibernate
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;
Run Code Online (Sandbox Code Playgroud)
你试过"Project> Clean ..."吗?什么是确切的错误消息?在Java更新之后,您可能需要更新JDK的路径:"Window> Preferences> Java> Installed JREs"
如果你键入(Ctrl + shift + t),或者打开Type Explorer并输入SessionFactory,那么Eclipse会找到它们吗?如果没有,那么肯定你在.jar文件中有一些问题.尝试删除并替换它们.
顺便问一下你使用的是Mac还是PC?
| 归档时间: |
|
| 查看次数: |
49718 次 |
| 最近记录: |