File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Why do I get the error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Why do I get the error "taskdef class ..."?" Watch "Why do I get the error "taskdef class ..."?" New topic
Author

Why do I get the error "taskdef class ..."?

Alexandra Niculai
Greenhorn

Joined: Nov 05, 2008
Posts: 10
I'm trying to build this project, but I keep getting the error: taskdef class com.sun.xml.rpc.tools.ant.Wscompile cannot be found, even if I have imported it and I have added it in the libraries(jaxrpx-impl.jar), so it is there.
I am using NetBeans 6.1 and I have installed the plugin JAX-RPC Webservices.
I'm really new to this kind of applications, so I don't know why I'm receiving this error. Can anyone please help me?
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Hi Alexandra,

I'm afraid I don't use Netbeans so I'm not sure how much I can help. Have you checked that:

1.) The class that it is looking for is in the JAR you imported

2.) That the ANT classpath that Netbeans runs has that JAR in its classpath (I say this because for me using eclipse you have to set the classpath of your project separately to the classpath that you are executing ant with.


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Alexandra Niculai
Greenhorn

Joined: Nov 05, 2008
Posts: 10
I'll try to check that, I'm not really sure how to do this, but I think you're right.
[ November 07, 2008: Message edited by: Alexandra Niculai ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why do I get the error "taskdef class ..."?
 
Similar Threads
taskdef in ant
Odd exception with Axis 1.4 and ant taskdef
svn update using ant
WSAD5: where is com.ibm.websphere...JspC?
Keep getting: weblogic.xml.schema.binding.BindingException: ERROR: during code compilation