Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners import org.hibernate.Session error
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


prajula kottai
import org.hibernate.Session error
5 Answer(s)      3 years and 11 months ago
Posted in : Java Beginners


I am new to hibernate. I have followed the given steps but it could not recognize hibernate.session and other imports. what i need to do?


Advertisement
View Answers

October 19, 2010 at 1:16 PM


Hi,

Are you using Eclipse? Please let's know what steps you are following.

I will try to help you.

Thanks



October 19, 2010 at 2:04 PM


Hi! Im using Eclipse. Steps : 1. Downloaded the example code and library from rose india and extracted the content in a directory. 2. Downloaded file contains the Eclipse project. 3. Started the Eclipse project and selected Java Project. 4. Created a new project browsing the file. 5. Copied contact.hbm.xml, and hibernate.cfg.xml in the bin directory of the project using windows explorer.

As im using Oracle 10G i changed the dialect and given user name and password. Used my sample database table.

Thanks



October 19, 2010 at 2:33 PM


Hi,

I think libraries are not included in the your project.

Go to project properties-->Java Build Path --> Libraries --> Click on Add JAR's button and then add the library to your project.

Thanks



October 19, 2010 at 3:21 PM


Hi,

Download the code from Download Source Code Example of tutorial

Take the jar and code from the zip file. You will have to add the following jar files into your project.

ant-1.6.2.jar
ant-antlr-1.6.2.jar
ant-junit-1.6.2.jar
ant-launcher-1.6.2.jar
ant-swing-1.6.2.jar
antlr-2.7.4.jar
c3p0-0.8.5.jar
cglib-full-2.0.2.jar
cleanimports.jar
commons-collections-2.1.1.jar
commons-logging-1.0.4.jar
concurrent-1.3.2.jar
connector.jar
dom4j-1.5.2.jar
ehcache-1.1.jar
hibernate3.jar
jaas.jar
jacc-1_0-fr.jar
jaxen-1.1-beta-4.jar
jboss-cache.jar
jboss-common.jar
jboss-jmx.jar
jboss-remoting.jar
jboss-system.jar
jdbc2_0-stdext.jar
jta.jar
junit-3.8.1.jar
log4j-1.2.9.jar
mysql-connector-java-3.0.16-ga-bin.jar
mysql-connector-java-3.1.6-bin.jar
oscache-2.1.jar
proxool-0.8.3.jar
swarmcache-1.0rc2.jar
versioncheck.jar
xerces-2.6.2.jar
xml-apis.jar

Read Hibernate tutorial at http://www.roseindia.net/hibernate/ Regards Deepak Kumar



August 24, 2012 at 6:57 PM


thank u for helping...



Related Tutorials/Questions & Answers:
import org.hibernate.Session error
import org.hibernate.Session error  I am new to hibernate. I have followed the given steps but it could not recognize hibernate.session and other imports. what i need to do?   Hi, Are you using Eclipse? Please let's
Reply to the mail(import files error)
Reply to the mail(import files error)  Hi! Thank you. That error has...-to-the-mail(import-files-error).html Thanks... as org.hibernate.MappingException: Error reading resource: contact.hbm.xml
Advertisements
Reply to the mail(import files error)
Reply to the mail(import files error)  Hi Its already there in the bin. If its class path should be set , how can i do dat?   Hi, Wait for 20 minutes. I will send you link to download new project file. You should
why i'm getting this error?The import javax.servlet.http cannot be resolved
why i'm getting this error?The import javax.servlet.http cannot...-quick-tip-resolving-error-the-import-javaxservlet-cannot-be-resolved/ ** any... getting this error, why i'm getting this error and how to solve this error., Have
import file
import file    public void importFile(BlobDomain fileData) { InputStream inStr = fileData.getInputStream(); Workbook workbook = Workbook.getWorkbook(inStr); Sheet sheet = workbook.getSheet(0); int colCount
import package.subpackage.* does not work
import package.subpackage.* does not work  I have 3 class files...("funA"); } } C.java:- import com.test.*; class C { public static...(); } } When i am compiling the above 3 class, i am getting an error message like
Problem of Import JWorkbook
Problem of Import JWorkbook  Hi... i can't use the jworkbook in my project.what types of library files in import
Import attribute of page directive
Import attribute of page directive   How use import attribute of page directive ?   The import attribute is used to import all the classes... that the JSP page wants to import, the programmer can use import more than once
unable to import class com.opensymphony.xwork2.ActionContext not found
unable to import class com.opensymphony.xwork2.ActionContext not found  Imported class com.opensymphony.xwork2.ActionContext not found gettin the above error
Java static import
Java static import  What is the use of static import
import package - JSP-Servlet
import package  how to import a package into a jsp page...pls reply with an example..  Hi friend, To import a package in Jsp use the import Attribute of page Directive In JSP The package name folder is putted
jfree missing import file
jfree missing import file  hi....... i have checked the jar file of jfree that import file of RECTANGLEINSETS is not there then what to do now? how to solve this problem? plz help?   Download jcommon-1.0.16.jar
jfree missing import file
jfree missing import file  hi....... i have checked the jar file of jfree that import file of RECTANGLEINSETS is not there then what to do now? how to solve this problem? plz help?   Download jcommon-1.0.16.jar
jfree missing import file
jfree missing import file  hi....... i have checked the jar file of jfree that import file of RECTANGLEINSETS is not there then what to do now? how to solve this problem? plz help?   Download jcommon-1.0.16.jar
jfree missing import file
jfree missing import file  hi....... i have checked the jar file of jfree that import file of RECTANGLEINSETS is not there then what to do now? how to solve this problem? plz help?   Download jcommon-1.0.16.jar
about static import - Java Beginners
i compile B.class it is showing the compile time error on variable i. i want to ask that "static import" syntax is correct or not package mypackage1... A { protected static int i=5; } package mypackage2; import static mypackage1.A.
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package com.dept.iso; import java.io.IOException; import java.io.PrintWriter; import
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package com.dept.iso; import java.io.IOException; import java.io.PrintWriter; import
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package com.dept.iso; import java.io.IOException; import java.io.PrintWriter; import
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package com.dept.iso; import java.io.IOException; import java.io.PrintWriter; import
JSP import
JSP import         An import is the attribute of the page directive in JSP that imports... packagename.classname or import all classes of the package by using packagename
In netbean jdk, it does not import the file,"java.nio.file.Paths". why?.
In netbean jdk, it does not import the file,"java.nio.file.Paths". why?.  it shows error file does not exist
error
error  while iam compiling iam getting expected error
Import My Own Package (Automatically)
Import My Own Package (Automatically)   How can I import my own package in every java program ( automatically )....? For example :- java.lang.String... automatically imported, we need not to import
The import keyword
The import keyword       The import statement make available one or all the classes in a package... is the syntax to import a package in a class. import java.io.File
Import MYSQL file in PHP - PHP
Import MYSQL file in PHP  i wanted to import the mysql file in PHP5 on button click. is it possible to do it? Is there any possibility of data security
Import Data to SQL database in Java
Import Data to SQL database in Java  Hi, I'm a beginner and I'm wondering how to Import Data to SQL database in Java? Thanks (Platform: Eclipse/SQL
Error-
Error-   Hello, I would like to know about XSD file. I try to print XML file but I am getting error SAXException-- says Content is not allowed in prolog. Please help me
import user-define package - Applet
import user-define package  how to import user-define package to the frame/graphic of the applet. could i create a new frame or not ?? please help me ...  Hi friend, import java.io.*; import java.awt.*; import
Page Directive attribute - import
Page Directive attribute - import This tutorial  contains description of import attribute of page Directive. import  Attribute : This attribute... and classes . For multiple import you can use comma(,) for separation. By default
error
error  i have 404 error in my program plz tell me yhe solution about
 

 

 

DMCA.com