-->
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.  [ 5 posts ] 
Author Message
 Post subject: Install, Ant JUnitTask cannot be found: junit/framework
PostPosted: Sun Sep 12, 2004 4:17 am 
Newbie

Joined: Sun Sep 12, 2004 4:02 am
Posts: 1
Hibernate version:

hibernate-3.0alpha
apache-ant-1.6.2

Mapping documents:
Initial Examples...
Code between sessionFactory.openSession() and session.close():
Did not get that far...
Full stack trace of any exception that occurs:
Did not get that far...
Name and version of the database you are using:
HSQL 1.7.2
The generated SQL (show_sql=true):
Did not get that far...
Debug level Hibernate log excerpt:
Did not get that far..

First time istall. After entering ant for the build I recievec the following message:

C:\Program Files\hibernate-3.0alpha>ant
Buildfile: build.xml

BUILD FAILED
C:\Program Files\hibernate-3.0alpha\build.xml:110: taskdef A class needed by class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask cannot be found: junit/framework/Test

Total time: 5 seconds




[/list]


Top
 Profile  
 
 Post subject: Same problem
PostPosted: Mon Oct 25, 2004 5:32 pm 
Newbie

Joined: Mon Oct 25, 2004 5:21 pm
Posts: 6
I am having the same problem trying to build hibernate3 from cvs. Despite the fact that the junit jar file appears to be included in the classpath for the task, junit.framework.Test is not found. A response to this would be greatly appreciated.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 25, 2004 5:35 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
This is a well known problem with Ant, copy junit.jar in the lib/ directory of your Ant installation and don't forget to point out your disapproval to the Ant developers.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 26, 2004 9:14 am 
Newbie

Joined: Mon Oct 25, 2004 5:21 pm
Posts: 6
Thanks for your help.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 30, 2006 12:32 am 
Newbie

Joined: Tue May 30, 2006 12:24 am
Posts: 6
Location: Sydney, Australia
Oh, my gosh...
Thanks so much for this info.
It was driving me crazy...
by the way, perhaps the webpage should explain this?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.