如何解决复制的netbeans项目中缺少的休眠支持库 [英] how to solve missing hibernate-support library in copied netbeans project
问题描述
我正在研究使用NetBeans给出的Java代码.我复制代码并尝试运行并出现以下错误
I am working on this Java code given using NetBeans. I copy code and trying to run and getting following error
警告:找不到文件 /home/blackbird/NetBeansProjects/XCRIBuilder/${libs.hibernate-support.classpath} 复制**
Warning: Could not find file /home/blackbird/NetBeansProjects/XCRIBuilder/${libs.hibernate-support.classpath} to copy**
在NetBeans --> project properties
中说缺少hibernate-support
库,但是我可以看到已经将多个与休眠相关的jar文件添加到库中.
in NetBeans --> project properties
it says missing hibernate-support
library, but I can see there are multiple hibernate related jar files already added to library.
是否需要为休眠设置任何classPath?如果我在NetBeans中创建新的Java Web应用程序项目,那么它不会给我这个错误
is there any classPath need to set-up for hibernate? if I create new java web-application project in NetBeans then it doesn't give me this error
我正在linux ubuntu上运行NetBeans.
I am running NetBeans on linux ubuntu.
我真的需要关于此的准则
I really need guideline on this
非常感谢
推荐答案
即使这是一个非常老的问题...
Even though this is a pretty old question...
在Project properties->Libraries
中,我删除了hibernate-support
引用,然后直接从Netbeans中添加了休眠模式,即Add Library -> Global Libraries -> Hibernate 4.3.x
In Project properties->Libraries
I removed the hibernate-support
reference and then added hibernate directly from Netbeans, i.e. Add Library -> Global Libraries -> Hibernate 4.3.x
清洁并构建,一切都很好.
这篇关于如何解决复制的netbeans项目中缺少的休眠支持库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!