Compilation error. Hibernate code

Compilation error. Hibernate code

Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:152)
at com.sat.Manager.main(Manager.java:10)

how to rectify that error in hibernate
View Answers

May 31, 2010 at 1:36 PM

Hi Friend,

You have to download the slf4j-api-1.6.0.jar file and set its path. You can download the jar file from the following link:

http://www.slf4j.org/download.html

Thanks









Related Tutorials/Questions & Answers:
Compilation error. Hibernate code - Hibernate
Compilation error. Hibernate code   Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory...) how to rectify that error in hibernate  Hi Friend, You have
Java Compilation error. Hibernate code problem. Struts first example - Hibernate
Java Compilation error. Hibernate code problem. Struts first example  Java Compilation error. Hibernate code problem. Struts first example
Advertisements
java compilation error - Hibernate
java compilation error  hi i am getting org.hibernate.exception.GenericJDBCException: Cannot open connection exception when runnig the code why this exception is coming
java compilation error - Hibernate
java compilation error  hi, i have made an registration page whosevalues should be inserted into database. i have used hibernate and eclipse it is working fine. but when i make a war file and deploy it using ant and then run
java Compilation error:jsp code - JSP-Servlet
java Compilation error:jsp code   I am getting an Generated Servlet error: String literal is not properly closed by a double-quote. here is my code: <% { Dbclass2 d= new Dbclass2
jsp code compilation error - JSP-Servlet
jsp code compilation error  hai, iam doing online banking project.i... is the error and also what is the proper code for funds transfer. HTTP... The server encountered an internal error () that prevented it from fulfilling
compilation error
compilation error  Hi my program below is not compiling,when I try to compile it i'm getting the error message "tool completed with exit code 1... java.util.*; import java.text.*; class HardwareItems { String code
java compilation error - Applet
java compilation error  I am getting compilation error in the following code.: public void paint(Graphics g) { switch(screen...; } } Error is: Illegal start of expression Plz. find why am I getting this error
jdbc compilation error - JDBC
jdbc compilation error  java.lang.Exception: Problem in call_select when i am executing the program i am getting the above error. how can i resolve it?  Hi friend, plz specify in detail and send me code
groovy compilation error - Framework
] [groovyc] 1 error Compilation error: Compilation Failed how we can resolve...groovy compilation error  while i am running the grails application , i got the error message like: [groovyc
java compilation error - Applet
java compilation error  hi friends the following is the awt front design program error, give me the replay E:\ramesh>javac..., Plz give full details with source code and visit to : http
Webshpere compilation error
Webshpere compilation error   I want clear result . Thank you WSWS3166E: Error: No client transport named 'http' found. faultActor: null faultDetail: [10/5/10 13:19:40:937 EDT] 00000043 SystemOut O WSWS3166E: Error
compilation error - Java Beginners
compilation error  i 'm not able to compile a program : prblem...; Post your code.  //this is person code!! public class Person...=dog; } public Dog getDog() { return dog; } } //this is Dog code
compilation error - Java Beginners
compilation error   import java.awt.*; import java.awt.event.*; import javax.swing.*; class BLayout implements ActionListener { JFrame f...,BorderLayout.CENTER}; for(int i = 0 ; i  Hi Friend, Try the following code
compilation error - Java Beginners
compilation error  class s { public static... this program it is giving an error as integer number is too large.why? and what... not in the Hexadecimal or Octal. Here is fraction of Java code example which will help you
Java Compilation error - SQL
Java Compilation error  ava.lang.NullPointerException at beanUtils.SaleHeaderUtility.getFullRemainPatientList(SaleHeaderUtility.java:754... post your code. Thanks
java compilation error - Ant
java compilation error  hi, i have a application in which i m reading from an xml file and then storing its values in database.but when i started.... do let me know?  Hi Friend, Please post your code. Thanks
compilation error - Java Beginners
compilation error  sir what is the error inthis code after executing the below code i got java.lang.NoSuchMethodError: main Exception... org.array.Group Correct Code : package org.array; import java.io.
Java compilation error - Java Beginners
Java compilation error  Method overridden problems in compile time error
Compilation Error - Struts
Compilation Error  description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class
compilation error - Java Beginners
compilation error  Dear sir, When i compile some pgms i am getting below error.what may be the reason? "uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details."  Hi Friend
compilation error - JSP-Servlet
compilation error  Hi sir, i'm using following code to upload an image to the database.I'm facing the following problem. <% String...(longblob)) in the database and try the following code: <% String
java compilation error - JDBC
java compilation error   /* *Project:employee.java *Date:April 04,2007. *Purpose:To All Java Developers **/ package employee; import javax.swing.*; import java.awt.*; import javax.swing.border.
java compilation error - Java Beginners
java compilation error  Sir Thanx for ur response for reading a doc file but when i tried to execute ur code compilation error occurs, it says --> org.apache.poi.hwpf package does not exist. -->
java compilation error - Java Beginners
java compilation error  HELLO SIR,I HAVE ASKED QUESTION AND I GOT REPLY FOR THAT ALSO BUT I AM GETING COMPILATION ERROR UNCHECKED OR UNSAFE OPERATION... be a deprecated method which shows that message.Even then,if you run the given code,you
Hibernate compilation - Hibernate
Hibernate compilation  please explain how to compile and run Hibernate at command prompt ( in dos) with sample example
Java Compilation error - Java Beginners
Java Compilation error  I got this error while convert java to pdf.../size can somebody told me how to handle this error...  Hi Friend, Please send your code. Thanks   Its ok... i already solved
Java Compilation error - Java Beginners
Java Compilation error   i wrote a simple hello world program i get this error every time please help Exception in thread "main..., Please send your code so that we can help you. Thanks
Java compilation error - Java Beginners
Java compilation error  Hello I am having this problem while...\AccountRecord.java I save AccountRecord.java in ch14 However I get an error saying... your code so that we can solve your problem. Thanks
java compilation error - Java Beginners
java compilation error  Dear Sir ........ I was installed the java... writing my code through command line instead of a note pad but while compiling I'm getting the error like file not found : exxx.java(my file name is exx), Ill
java compilation error - Java Beginners
occurs.Even then if you found error,send the full code. Thanks...java compilation error  I need to know how to correct a compiler error for my program to run. The error I keep getting is unclosed string literal
java compilation error - Java Beginners
java compilation error  Hello, I'm having problems with trying to correct 2 compiler errors. The code I'm having trouble with is listed below. It's flagging two errors for this one code. The first error says identifier
java compilation error - Java Beginners
java compilation error  i am going to type program and the error is shaded one this one is giving error please sole this one sir import java.io....:"+ch); } }   Hi friend, Having some error in your code check
java compilation error - Java Beginners
java compilation error  i am going to type program and the error is shaded one this one is giving error please sole this one sir import java.io....:"+ch); } }   Hi friend, Having some error in your code check
Compilation error in java - Java Beginners
Compilation error in java  i have a properties file named... that file in java class,my code is Properties props = new Properties(); File... FileInputStream(f); props.load(in); but i got a error the system could
java compilation error - Swing AWT
java compilation error   NestedPopupMenu n = new NestedPopupMenu(); getting error as "local variable n is never read  Hi dharani, This is running code. I hope that this code will help you. import java.util.
compilation error in java - Java Beginners
compilation error in java  Here is the pgm usinf if-else statement.... For removing the error you have to use the String type in place of char & your code... the following code: class grade { public static void main(String [ ] args
java compilation error - Java Beginners
java compilation error   1)java code: import java.awt.*; import...(multBut); } } ****** its code is being compiled . But the command java ButtonPanelApplet does give me error of "exception in thread main...."  
java compilation error - Java Beginners
java compilation error  i have downloaded java software(version 6 update 12) from www.java.com. whenever i try to compile the program using javac command, error message is displayed javac is not recognized as an internal
Java Compilation Error - Java Beginners
Java Compilation Error   Actually Iam having a packaging. Whatever... imported packages. What ever error iam getting is at the array usage. So, guide me regarding that.  Hi friend, We check your code having some
java compilation error - JSP-Servlet
java compilation error  i have created an employee table in mysql and connected it using JDBC, now i have to do client side validations, can u please... code
Java Compilation error - Java Beginners
Java Compilation error  how to put 2 classes on java program?and what shall i do if symbol not found appear?  Hi Friend, Try the following code: class Determine{ public int add(int a,int b){ return a+b
java compilation error - Java Beginners
java compilation error  Hello, I had recently sent an email and got a response regarding how to add an image to a GUI. I used the code...); MY ERROR FLAGS HERE public class DisplayImage extends Panel { BufferedImage
java compilation error - Java Beginners
java compilation error  Hello, I sent a previous message regarding... can't run it ProductInventoryVGUI Uncaught error fetching image... thats maybe why I'm getting that error message. Is there a way I can find an image
Java Compilation error - Development process
Java Compilation error  hi my serious problem is,how can i upload a file directly to the current remote database.. Below steps might work. 1. Create db connection to xls file using code you posted. 2. Create db
java compilation error - Java Beginners
java compilation error  Hello madam/sir, i m a beginners in java. My problem is that i want to connect a login form to a frame containing 4 panels. how could i do it?Please help
java compilation error - Java Beginners
java compilation error  package punitha; import java.util.Vector... code here: ReadFile rf=new ReadFile(file.getAbsolutePath... calling other java pgms like k-means and Readfile... when i execute am getting error
Java compilation error - Java Beginners
Java compilation error  Hello, i am getting an error while running simple core java program on command prompt.java is installed on my pc. the error is: javac:file not found usage:javac Regards, jyoti prakash 
java compilation error - Java Beginners
haven't provide the code of classes Product and Inventory2.Thatswhy 2 error occurs...java compilation error  here is the rest of my codes. I hope you...) { ProductInventory2.addProduct(temp); repaint(); MY COMPILER ERROR BEGINS BELOW
java compilation error - JSP-Servlet
java compilation error  How to compile a java Program,If i am having jdk1.5 in webligic it support jdk1.4..When i put a .class file into WEB-INF/classes/Mybeans/Datacon.class it was given a error  Hi friend

Ads