Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reference classpath not found. with ant

 
Qisen Jia
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • 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

 
Ivan Jozsef Balazs
Rancher
Posts: 981
5
  • Likes 1
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic