|
Mailing Lists
|
Home /
Groups /
CFUnit
taskdef class net sourceforge cfunit ant cfunit cannot be found
Following this exampe, http://www.fusionauthority.com/techniques/article.cfm/articleid:4583Tom Lenz 09/07/07 05:46 A Hi Tim,SkorPiun 09/16/07 10:57 A > But if you are executing this from within Eclipse, the path might beTom Lenz 09/17/07 03:27 A > It wouldn't have been obvious to me to try that though because isn't itJanet MacKay 10/03/07 10:23 P > But if you are executing this from within Eclipse, the path might beTom Lenz 09/17/07 03:29 A 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? 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 > 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 > 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 ----- 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
|
May 25, 2013
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||