• 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

Eclipse-Ant-Classpath trouble.

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

When I launch an Ant task from the Ant view in Eclipse I get the error message:

Variable references non-existent resource : ${workspace_loc:/MY/FOLDER/myjar.jar}



In the external tool's classpath dialog the file ${workspace_loc:/MY/FOLDER/myjar.jar} is listed under "Additional Tasks and Support". A little confusing since my ant script is trying to build the file myjar.jar.

It's not possible to delete this classpath entry without deleting the whole Additional Tasks and Support tree.

I've tried clean up and refresh with out success, the only thing that seems to work is to rename an arbitrary jar to myjar.jar and rebuild. The rename-rebuild usually results a an build that doesn't contain the latest code changes.

Does any one know how the solve this confusing behaviour?

I'm using Eclipse 3.3.2, Ant 1.7, JDK 1.6.0_06 and Win XP.
 
M�rten Sj�strand
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://publib.boulder.ibm.com/infocenter/radhelp/v6r0m1/index.jsp?topic=/org.eclipse.platform.doc.user/tasks/tasks-ant-classpath.htm

This gave me a hint on how to solve my issue.

Simply remove unused jar from Ants classpath under Windows->Preferences->Ant->Runtime->Classpath
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you M�rten Sj�strand so very much. I have left this thorn in my Eclipse for so long and been running build from outside it until it gets too unbearable, and within few minutes found your answer here via google. I went to Preferences > Ant > Runtime > Global Entries where it is pointing to this file that i have no idea why it should be there. Deleted it and now build.xml works perfectly.

Greetings from Malaysia.
 
You totally ruined the moon. You're gonna hafta pay for that you know. This tiny ad agrees:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic