This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Reference classpath not found.  with ant Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Reference classpath not found.  with ant" Watch "Reference classpath not found.  with ant" New topic
Author

Reference classpath not found. with ant

Qisen Jia
Greenhorn

Joined: Sep 25, 2009
Posts: 6
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

Joined: May 22, 2012
Posts: 866
    
    5
<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

Joined: Sep 25, 2009
Posts: 6
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reference classpath not found. with ant
 
Similar Threads
ANT BUILD FAILED:Error starting modern compiler
weblogic.management.DeploymentException: [Deployer:149189]
Ant building error
Compilation error while building the project using Ant
Which IDE support JSP 2.0