Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A problem of classpaths and Xerces Jars

 
Arundhathi Menon
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic