Eclipse 中的休眠 jar 文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14396454/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Hibernate jar files in Eclipse
提问by Davis
I'm new to hibernate and eclipse and tried to code "hello world" program by using the tutorial
我是 hibernate 和 eclipse 的新手,并尝试使用教程编写“hello world”程序
Also i'm using hibernate 4.1.8 version. When i tried to run the program the first error is "The import org.hibernate cannot be resolved" .Searched about it and i got i'm missing jar files. These jar files are in .rar format in my downloaded 4.1.8 hibernate. when i extract i cant find a .jar file. where can i find .jar file after extraction?
另外我使用的是休眠 4.1.8 版本。当我尝试运行该程序时,第一个错误是“无法解析导入 org.hibernate”。搜索它,我发现缺少 jar 文件。这些 jar 文件在我下载的 4.1.8 hibernate 中为 .rar 格式。当我提取时,我找不到 .jar 文件。解压后在哪里可以找到 .jar 文件?
回答by rai.skumar
You can download jars from hibernate official site : http://sourceforge.net/projects/hibernate/files/hibernate4/
您可以从 hibernate 官方网站下载 jars:http: //sourceforge.net/projects/hibernate/files/hibernate4/
After downloading jars; pls put them in your CLASSPATHso that your code in eclipse can use it.
下载jar包后;请把它们放在你的CLASSPATH 中,以便你在 eclipse 中的代码可以使用它。
回答by Ankur Lathi
回答by Shuhail Kadavath
Please download the latest jars from http://www.hibernate.org/downloads
请从http://www.hibernate.org/downloads下载最新的 jars
Add those jars tour classpath and Happy ORM persistence !!!
添加那些 jars tour classpath 和 Happy ORM 持久性!!!
回答by Nil Jena
Right click on your project -> properties -> Build path -> config build Path -> choose Librey.
右键单击您的项目 -> 属性 -> 构建路径 -> 配置构建路径 -> 选择 Librey。
in right side corner you saw a content Add External jarfile select it. then copy all the jar filewhich you want. then come to your project and paste it.
在右侧角落你看到一个内容 Add External jarfile 选择它。然后复制你想要的所有 jar 文件。然后来到你的项目并粘贴它。
回答by user9047153
Go to your project web-inf then you will get lib folder. Copy all your hibernate and jdbc file and paste there simply.
转到您的项目 web-inf,然后您将获得 lib 文件夹。复制所有的 hibernate 和 jdbc 文件并简单地粘贴到那里。