Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

A problem of classpaths and Xerces Jars

 
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic