-->
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: hibernate build error
PostPosted: Thu Nov 23, 2006 7:25 am 
Newbie

Joined: Thu Nov 23, 2006 7:17 am
Posts: 2
hello all,

i am getting the following error while trying to build hibernate. i have JDK 1.5.09 in c:\sun\sdk, i have my JAVA_HOME set to c:\sun\sdk\jdk, and CLASSPATH to %JAVA_HOME%\lib on a windows xp pro sp2.

<error>
C:\hibernate-3.2>java -cp "lib/ant-launcher-1.6.5.jar" org.apache.tools.ant.launch.Launcher -lib lib
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.5.0_09\lib\tools.jar
Buildfile: build.xml
[taskdef] Could not load definitions from resource clovertasks. It could not be found.

splash:

init:
[echo] Build Hibernate-3.2.1.ga (2006-11-23 12:15:34)
[echo] JDK version: 1.5

init.antlr:

antlr:

compile:
[javac] Compiling 1053 source files to C:\hibernate-3.2\build\classes

BUILD FAILED
C:\hibernate-3.2\build.xml:201: Unable to find a javac compiler
;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK

Total time: 3 seconds

</error>

thanks in advance for any help, best regards

Attila Balogh


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 23, 2006 8:45 am 
Senior
Senior

Joined: Tue Aug 23, 2005 8:52 am
Posts: 181
You could just use ant to build Hibernate. Just type
Code:
ant

in the hibernate directory, the default target is jar and it should be able to compile them all and build the jar files


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.