File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Testing and the fly likes A problem of classpaths and Xerces Jars Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "A problem of classpaths and Xerces Jars" Watch "A problem of classpaths and Xerces Jars" New topic
Author

A problem of classpaths and Xerces Jars

Arundhathi Menon
Ranch Hand

Joined: Jan 14, 2004
Posts: 113
hi,
The project that am currently working in requires xercers jars of a version that diffres from that of HttpUnit. Since I cant change the jars of the project I decided that I would create another project with HttpUnit testcases with the HttpUnit required Xerces set in the buikd path of the proj2.

Now Proj1 needs to invoke a few methods of my testcse , for that I included the second Project (Proj2) in the classpath of the Proj1. Now when I include the methods of the testcase in my java file of Proj1 by importing the package of proj2, I get the error that the class of Proj1 indirectly access junit framnework. How do I get around this problem of classpaths ?

regards
Menon


SCJP , SCWCD , SCBCD , SCDJWS
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Originally posted by Arundhathi Menon:
Now Proj1 needs to invoke a few methods of my testcse


Why? That sounds backwards to me: your application shouldn't depend on the testcases at all.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: A problem of classpaths and Xerces Jars
 
Similar Threads
Best solution for Regex problem
Regex; Unable to follow difference in output
Please Help
Installing Nachos with JDK
Publishing to jboss from eclipse