wood burning stoves 2.0*
The moose likes Ant, Maven and Other Build Tools and the fly likes Path not working 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 "Path not working" Watch "Path not working" New topic
Author

Path not working

Robo Fazak
Greenhorn

Joined: Mar 25, 2010
Posts: 8
Hi,

I am new to Ant build tool, I am learning ant to deploy my web service in Tomcat.

Copied portion of my build.xml. Path is not working properly can anybody tell me the reason.



When i point mouse on path id it show path as mybasedir/${lib.home}, which is an invalid path so my taskdef is not working

Advanced thanks

SCJP 1.6
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Please use code tags when posting source, makes it much easier to read.

What do you mean by "is not working"? http://faq.javaranch.com/java/ItDoesntWorkIsUseless


JBoss In Action
Robo Fazak
Greenhorn

Joined: Mar 25, 2010
Posts: 8
Exception is thrown at running

build-server-java:
[apt] java.lang.NoClassDefFoundError: com/sun/tools/apt/Main
[apt] Exception in thread "main"
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

There is an inconsistency in your post - the original post refers to one class name but the error message you posted refers to a different class name.
Robo Fazak
Greenhorn

Joined: Mar 25, 2010
Posts: 8
When i used the defined path in the following task i got this exception


Robo Fazak
Greenhorn

Joined: Mar 25, 2010
Posts: 8


When i run this code from commandline using ant it is running but it is throwing the above exception in eclipse(When Run as -> Ant Build).

Can anybody tell me the reason.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Path not working
 
Similar Threads
Please help Exception in thread "main"
Problem in adding jar files to the building war file using ant
Eclipse 3.3, Glassfish, WebServices and wsimport
Regarding Ant issue.
axis-java2wsdl task classpath problem