These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: compiling hibernate-tools.jar from svn
PostPosted: Sat Sep 23, 2006 1:22 am 
Beginner
Beginner

Joined: Mon Apr 03, 2006 2:41 am
Posts: 25
Location: Mauritius
Hi,

Below the steps I have followed in order to get a hibernate-tools.jar from the source code.

Since it had not been straight forward for me, I have decided to write this post.

I use apache-ant-1.6.5 and jdk1.5.0_06 on Windows.

step 1)

copy junit-4.1.jar in %ant_home%/lib
I copy it from <eclipse installation path>\plugins\org.junit4_4.1.0

step 2)

create a root directory for the required files ( for ex. HibernateTools )

create a subdirectory for the source code ( for ex. HibernateExt )
get/checkout the source code from http://anonhibernate.labs.jboss.com/trunk/HibernateExt

create directory 'hibernate-3.2' in the root directory

step 3)

Alternative 1)

get 'hibernate3.jar' from the last release
for me it was HibernateTools-3.2.0.beta7\plugins\org.hibernate.eclipse_3.2.0.beta7\lib\hibernate

copy 'hibernate3.jar' into 'hibernate-3.2'

create a subdirectory 'lib' into 'hibernate-3.2'

get the libraries from http://anonhibernate.labs.jboss.com/tru ... rnate3/lib

Alternative 2)

copy antlr-2.7.6.jar into %ant_home%/lib

get/checkout the hibernatecore source code from http://anonhibernate.labs.jboss.com/trunk/Hibernate3/
into the 'hibernate-3.2' directory

open a command prompt in this directory
run : ant jar

copy 'hibernate-3.2.jar' from hibernate-3.2\build to hibernate-3.2

step 4)

go into HibernateExt\tools in a command prompt
run : ant jar

you can find 'hibernate-tools.jar' into 'HibernateExt\tools\target\hibernate-tools' !

summary of the directory structure :


HibernateTools
- HibernateExt
- hibernate-3.2
--hibernate3.jar
--lib

Hope this helps.

Please correct me if some steps are wrong or not recommended.

I have just a comment about an issue I got :
wouldn't be possible that the build.bat use the JAVA_HOME environment variable in order to run the antlauncher ?

for example I had to change the build.bat with
"%JAVA_HOME%/bin/java" -cp "%HIBERNATECORE%\lib\ant-launcher-1.6.5.jar" org.apache.tools.ant.launch.Launcher -lib %HIBERNATECORE%/lib %1 %2 %3 %4 %5

because I installed JRE before installed JDK and by default the command prompt is running java from old JRE rather than from the JAVA_HOME, so it don't find javac

Regards,
Christophe


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 23, 2006 9:04 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
we should probably update the wiki instead :)

http://www.hibernate.org/268.html

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.