House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  CFUnit

taskdef class net sourceforge cfunit ant cfunit cannot be found

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Tom Lenz
09/07/2007 05:46 AM

Following this exampe, http://www.fusionauthority.com/techniques/article.cfm/articleid:4583 I get the subject error. I found this and tried it, http://cfunit.sourceforge.net/help-antview.php, with the same results. What kinds of things can I check to get to the bottom of problem like this?

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
SkorPiun
09/16/2007 10:57 AM

Hi Tim, Sorry it took me so long to reply. > Following this exampe, http://www.fusionauthority.com/techniques/article.cfm/articleid:4583 > I get the subject error. > > I found this and tried it, http://cfunit.sourceforge.net/help-antview.php, with the same results. > > What kinds of things can I check to get to the bottom of problem like this? > That message is telling you that Java could not find your CFUnit-Ant JAR file. Try moving you CFUnit-Ant JAR file into the Any library folder. The trick here is to realize that CFEclispe has its own version of Ant it uses when executing Ant scripts. So if you have installed Ant yourself, where you place the CFUnit-Ant jar will depend on how your executing the build files (from within Eclipse vs from command line). I personally play it safe an place it in all my Ant library folders :o) But if you are executing this from within Eclipse, the path might be something like this: C:\Program Files\eclipse\plugins\org.apache.ant_1.6.5\lib Give that a try and let us know if it helps (you may need to close/reopen Eclipse, I don't recall). -- Rob Blackburn http://www.rbdev.net

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Tom Lenz
09/17/2007 03:27 AM

> But if you are executing this from within Eclipse, the path might be > something like this: > C:\Program Files\eclipse\plugins\org.apache.ant_1.6.5\lib > > Give that a try and let us know if it helps (you may need to > close/reopen Eclipse, I don't recall). > Thanks for the reply. I copied the cfunit.jar file to C:\Program Files\$eclipse3.3\plugins\org.apache.ant_1.7.0.v200706080842\lib\cfunit.jar. I get the same results as before. It wouldn't have been obvious to me to try that though because isn't it looking for cfunit.jar in a directory structure including net/sourceforge/cfunit/ant? Does it matter what the name of the file is? I tried both cfunit.jar and cfunit-ant.jar. Do I have the right .jar file? I got it here: http://sourceforge.net/project/showfiles.php?group_id=145385&package_id=168973&release_id=477597 and it was named cfunit-ant-v3-alpha(2).jar

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Janet MacKay
10/03/2007 10:23 PM

> It wouldn't have been obvious to me to try that though because isn't it > looking for cfunit.jar in a directory structure including > net/sourceforge/cfunit/ant? No I think that's the path to the CFUnit.class file inside the cfunit jar > Do I have the right .jar file? I got it here: http://sourceforge. > net/project/showfiles. > php?group_id=145385&package_id=168973&release_id=477597 > and it was named cfunit-ant-v3-alpha(2).jar I tried the article instructions and got the same error http://www.fusionauthority.com/techniques/article.cfm/articleid:4583 What seemed to fix it for me was opening the Ant view and adding the cfunit jar to that classpath too.  The jar I used was:  cfunit-ant-v3-alpha.jar Window > show view > other > Ant Add build files > select the build.xml file right click the task > run as > open external tools dialog on the classpath tab > add external jar > add the cfunit jar

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Tom Lenz
09/17/2007 03:29 AM

----- Excess quoted text cut - see Original Post for more ----- Thanks for the reply. I copied the cfunit.jar file to C:\Program Files\$eclipse3.3\plugins\org.apache.ant_1.7.0.v200706080842\lib\cfunit.jar. I get the same results as before. It wouldn't have been obvious to me to try that though because isn't it looking for cfunit.jar in a directory structure including net/sourceforge/cfunit/ant? Does it matter what the name of the file is? I tried both cfunit.jar and cfunit-ant.jar. Do I have the right .jar file? I got it here: http://sourceforge.net/project/showfiles.php?group_id=145385&package_id=168973&release_id=477597 and it was named cfunit-ant-v3-alpha(2).jar


<< Previous Thread Today's Threads Next Thread >>

Search cfunit

May 25, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Designer, Developer and mobile workflow conference