I'm trying the tutorial at:
http://www.hibernate.org/hib_docs/v3/re ... orial.html
I get to step 1.2.5, Startup and Helpers and get an error. Error text is below. I am not sure if I've done something wrong (major newbie here) or if there is something missing in the tutorial.
Hibernate version:
3.1.3
Full stack trace of any exception that occurs:
C:\downloads\Hibernate\TestDev>ant
Buildfile: build.xml
clean:
[delete] Deleting directory C:\downloads\Hibernate\TestDev\bin
[mkdir] Created dir: C:\downloads\Hibernate\TestDev\bin
copy-resources:
[copy] Copying 3 files to C:\downloads\Hibernate\TestDev\bin
[copy] Copied 3 empty directories to 2 empty directories under C:\downloads
\Hibernate\TestDev\bin
compile:
[javac] Compiling 2 source files to C:\downloads\Hibernate\TestDev\bin
[javac] C:\downloads\Hibernate\TestDev\src\util\HibernateUtil.java:3: packag
e org.hibernate does not exist
[javac] import org.hibernate.*;
[javac] ^
[javac] C:\downloads\Hibernate\TestDev\src\util\HibernateUtil.java:4: packag
e org.hibernate.cfg does not exist
[javac] import org.hibernate.cfg.*;
[javac] ^
[javac] C:\downloads\Hibernate\TestDev\src\util\HibernateUtil.java:8: cannot
resolve symbol
[javac] symbol : class SessionFactory
[javac] location: class util.HibernateUtil
[javac] private static final SessionFactory sessionFactory;
[javac] ^
[javac] C:\downloads\Hibernate\TestDev\src\util\HibernateUtil.java:21: canno
t resolve symbol
[javac] symbol : class SessionFactory
[javac] location: class util.HibernateUtil
[javac] public static SessionFactory getSessionFactory() {
[javac] ^
[javac] C:\downloads\Hibernate\TestDev\src\util\HibernateUtil.java:13: canno
t resolve symbol
[javac] symbol : class Configuration
[javac] location: class util.HibernateUtil
[javac] sessionFactory = new Configuration().configure().buildSe
ssionFactory();
[javac] ^
[javac] 5 errors
BUILD FAILED
C:\downloads\Hibernate\TestDev\build.xml:21: Compile failed; see the compiler error output for details.
Total time: 1 second
C:\downloads\Hibernate\TestDev>