• 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

Reference classpath not found. with ant

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
when I use ant to build, I got this problem, here is build.xml

------------------------------------------------------------------------------------------------------------------------------------------------------------------------
then :
Buildfile: C:\MyFile\unis\publish\build.xml

clone:
[deltree] DEPRECATED - The deltree task is deprecated. Use delete instead.
[deltree] Deleting: C:\MyFile\unis\publish\temp

compile:
[mkdir] Created dir: C:\MyFile\unis\publish\temp
[copydir] DEPRECATED - The copydir task is deprecated. Use copy instead.
[copydir] Copying 2758 files to C:\MyFile\unis\publish\temp
[mkdir] Created dir: C:\MyFile\unis\publish\temp\WEB-INF\classes
[javac] Compiling 283 source files to C:\MyFile\unis\publish\temp\WEB-INF\classes

BUILD FAILED
C:\MyFile\unis\publish\build.xml:27: Reference classpath not found.

Total time: 2 minutes 5 seconds

can anyone help me? thanks a lot

 
Rancher
Posts: 1044
6
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<classpath refid="classpath"/>

Where do you define the above classpath item? Is there somewhere something like this?

<path id="classpath">
<pathelement location="${j2ee.home}/lib/servlet.jar"/>
<pathelement location="${j2ee.home}/lib/ejb30.jar"/>
</path>
 
Qisen Jia
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ivan Jozsef Balazs wrote:<classpath refid="classpath"/>

Where do you define the above classpath item? Is there somewhere something like this?

<path id="classpath">
<pathelement location="${j2ee.home}/lib/servlet.jar"/>
<pathelement location="${j2ee.home}/lib/ejb30.jar"/>
</path>



thanks you very much, i had find that mistake yesterday.
i'm not very familiar with ant.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic