• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Ant Run error: duplicacy of java file in different jar

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Friends,
I am trying to build a web application using Ant in eclipse. There are two third party jars(of same vendor) in application having a class with same absolute name(means with package) although methods in the classes are different. When I compile or build code using eclipse its compiled fine because I can control the order of jar files in .classpath file. But when try to compile using buildscript in eclipse or outside eclipse, unable to control the order of jar files and pick the wrong jar file first and result is compilation fail.

Have any idea how to control order of jar files when compile the code using Ant.

Thanks in advance.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'd assume building the classpath in the "correct" order would work.

That said, this is a really bad idea and will just lead to problems later. It'd be better if you just fixed your code.
reply
    Bookmark Topic Watch Topic
  • New Topic