Harnessing Hibernate
by Elliott,O'brien & Fowler
CHAPTER 1: Installation and Setup
---------------------------------
1.Getting and Installing an Ant Distribution
1.1.[root]# cd /opt
1.2.[root]# wget http://www.ibiblio.org/pub/mirrors/apache/ant/binaries/apache-ant-1.7.1-bin.tar.gz
1.3.[root]# tar xvfz apache-ant-1.7.1-bin.tar.gz
1.4.[root]# ln -s /opt/apache-ant-1.7.1 /usr/local/ant
1.5.[root]# vi /etc/profile.d/ant.sh
----------------------------------
View the ant.sh file
----------------------------------
1.6.[root]# chmod a+x /etc/profile.d/ant.sh
1.7.[root]# source /etc/profile.d/ant.sh
2. Check Your Java Version
2.1.[root]# java -version
3. Check Ant version
3.1.[root]# ant -version
4. Getting and Installing the Maven Tasks for Ant
4.1.[root]# wget http://www.apache.org/dyn/closer.cgi/maven/binaries/maven-ant-tasks-2.0.9.jar
4.2.[root]# mv maven-ant-tasks-2.0.9.jar %ANT_HOME/lib/.
4.3.[root]# ant -diagnostics | grep maven | grep bytes
5. Using the HSQLDB Database Engine
5.1 Download the hsqldb jars from their website
6. Using and Installing Hibernate Core
6.1.Download the hibernate-distribution-3.3.1.GA-dist.tar.gz
6.2.[root]# mv hibernate-distribution-3.3.1.GA-dist.tar.gz /opt/.
6.3.[root]# cd /opt
6.4.[root]# tar xvfz hibernate-distribution-3.3.1.GA-dist.tar.gz
6.6.[root]# ln -s /opt/hibernate-distribution-3.3.1.GA /usr/local/hibernate
7. Setting Up a Project Hierarchy
7.1.[root]# mkdir /home/alex/HibernateProjects
7.2.[root]# cd /home/alex/HibernateProjects
7.3.[root]# mkdir data
7.4.[root]# mkdir src
7.5.[root]# mkdir -p src/com/oreilly/hh/data
7.5.[root]# vi src/build.xml
----------------------------------
View the build.xml file
----------------------------------
7.6.[root]# ant db
7.7.[root]# ant print-classpath
Tuesday, February 17, 2009
Harnessing Hibernate by Elliott,O'brien & Fowler
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment