Hi friends,

I have facing problem to compile junit suite in ant. 

The following compile error is thrown in command line

compile:
    [javac] Compiling 4 source files to F:\folders\san\junit_build\class
    [javac] F:\folders\san\junit_build\src\junitrunner.java:2: error: 
package o
rg.junit.runner does not exist
    [javac] import org.junit.runner.JUnitCore;
    [javac]                        ^
    [javac] F:\folders\san\junit_build\src\junitrunner.java:3: error: 
package o
rg.junit.runner does not exist
    [javac] import org.junit.runner.Result;
    [javac]                        ^
    [javac] F:\folders\san\junit_build\src\junitrunner.java:4: error: 
package o
rg.junit.runner.notification does not exist
    [javac] import org.junit.runner.notification.Failure;
    [javac]                                     ^
    [javac] F:\folders\san\junit_build\src\junitsuite.java:2: error: 
package or
g.junit.runner does not exist
    [javac] import org.junit.runner.RunWith;
    [javac]                        ^
    [javac] F:\folders\sasi\junit_build\src\junitsuite.java:3: error: 
package or
g.junit.runners does not exist
    [javac] import org.junit.runners.Suite;
    [javac]                         ^
    [javac] F:\folders\san\junit_build\src\junitsuite.java:6: error: cannot 
fin
d symbol
    [javac] @RunWith(Suite.class)
    [javac]  ^
    [javac]   symbol: class RunWith
    [javac] F:\folders\san\junit_build\src\junitsuite.java:7: error: 
package Su
ite does not exist
    [javac] @Suite.SuiteClasses({
    [javac]       ^
    [javac] F:\folders\san\junit_build\src\test1.java:5: error: package 
org.jun
it does not exist
    [javac] import org.junit.Test;
    [javac]                 ^
    [javac] F:\folders\san\junit_build\src\test1.java:6: error: package 
org.jun
it does not exist
    [javac] import static org.junit.Assert.assertEquals;
    [javac]                        ^
    [javac] F:\folders\san\junit_build\src\test1.java:6: error: static 
import o
nly from classes and interfaces
    [javac] import static org.junit.Assert.assertEquals;
    [javac] ^
    [javac] F:\folders\san\junit_build\src\test2.java:3: error: package 
org.jun
it does not exist
    [javac] import org.junit.Test;
    [javac]                 ^
    [javac] F:\folders\san\junit_build\src\test1.java:13: error: cannot 
find sy
mbol
    [javac]     @Test
    [javac]      ^
    [javac]   symbol:   class Test
    [javac]   location: class test1
    [javac] F:\folders\san\junit_build\src\test2.java:8: error: cannot find 
sym
bol
    [javac]     @Test
    [javac]      ^
    [javac]   symbol:   class Test
    [javac]   location: class test2
    [javac] F:\folders\san\junit_build\src\junitrunner.java:8: error: 
cannot fi
nd symbol
    [javac]             Result 
result=JUnitCore.runClasses(junitsuite.class);
    [javac]             ^
    [javac]   symbol:   class Result
    [javac]   location: class junitrunner
    [javac] F:\folders\san\junit_build\src\junitrunner.java:8: error: 
cannot fi
nd symbol
    [javac]             Result 
result=JUnitCore.runClasses(junitsuite.class);
    [javac]                           ^
    [javac]   symbol:   variable JUnitCore
    [javac]   location: class junitrunner
    [javac] F:\folders\san\junit_build\src\junitrunner.java:9: error: 
cannot fi
nd symbol
    [javac]             for(Failure failure:result.getFailures())
    [javac]                 ^
    [javac]   symbol:   class Failure
    [javac]   location: class junitrunner
    [javac] 16 errors

BUILD FAILED
F:\folders\sasi\junit_build\build.xml:27: Compile failed; see the compiler 
error
 output for details.


As per my understanding, the build.xml is cannot find the junit.jar file 
that located in my file system.

Can someone help me to overcome this issue.

I have keep on searching how to eliminate this issue, unfortunately I 
didn't get any way to go..


Please help me...How can we run our junit suite successfully in ant. 

Please share your ideas with me. 

Thanks in advance.

Santhosh.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to