0
我用冬眠&我在編譯期間得到這個錯誤:包org.hibernate.cfg不存在import org.hibernate.cfg.Configuration;
package org.hibernate.cfg does not exist
import org.hibernate.cfg.Configuration;
我用冬眠&我在編譯期間得到這個錯誤:包org.hibernate.cfg不存在import org.hibernate.cfg.Configuration;
package org.hibernate.cfg does not exist
import org.hibernate.cfg.Configuration;
你有沒有在構建路徑中添加Hibernate罐子。因爲編譯器無法找到有這個包的jar。所以添加它並嘗試。 你使用任何IDE?
看來你的classpath中沒有hibernate.jar。