This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Path not working

 
Robo Fazak
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Robo Fazak
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When i used the defined path in the following task i got this exception


 
Robo Fazak
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic