File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Alexandra Niculai
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Alexandra Niculai
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic