hi abu, this is more a basic java question since you did not yet get to the point where the "real" problems arise, but let's see ... First of all, are you using Hiberrnate 2 or 3 ? Might finally update the tutorial since I don't know how many people still use Hibernate 2 ... Next, if your java file references classes from jar files, those jars need to be in your classpath. (quote from tutorial: "Compile these two files. I needed the following jars in my classpath: avalon-framework-api-4.1.5.jar, excalibur-datasource-1.1.1.jar, and hibernate2.jar.")
If you want to write an app with cocoon and hibernate, you are not going to get really far if you don't know what the classpath is. So I suggest you read e.g. http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/classpath.html or similar and try again. Regards, Johannes zulhisham abu nawar schrieb: > i'm back ;-)...now i'm using cocoon 2.1.7, hibernate 2.1.6 (same like > tutorial). I'm still got the errors when i compiled file.java... > > Through this tutorial, i should download hibernate and copy some > files.jar to /WEB-INF/lib. Here should i build hibernate file??Then > for files.java (PersistenceFactory.java n HibernateFactory.java) i put > at /WEB-INF/classes/hib. From tutorial i should copy > avalon-framework-api.jar, excalibur-datasource.jar to WEB-INF/lib > folder and compile java files..So my problem is the java file cant > compiled and the errrors: > > mac:/usr/opt/tomcat/jakarta-tomcat-5.0.28/webapps/cocoon/WEB-INF/classes/hib > root# javac PersistenceFactory.java > PersistenceFactory.java:8: package > org.apache.avalon.framework.component does not exist > import org.apache.avalon.framework.component.*; > ^ > PersistenceFactory.java:10: cannot resolve symbol > symbol : class Component > location: interface hib.PersistenceFactory > public interface PersistenceFactory extends Component { > ^ > PersistenceFactory.java:13: package net.sf.hibernate does not exist > public net.sf.hibernate.Session createSession(); > ^ > 3 errors > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]