Hello friends ,
I am new to ant tasks.in this custom ant tasks I have tried to implement, there are two classes HelloWorld.java and CmdCompile.java.

this is the build.xml I use,

<?xml version="1.0" ?>

<project name="Antcompile" default="main" basedir=".">
    <!--<description>Builds, tests, and runs the project Antcompile.</description>-->
    <import file="nbproject/build-impl.xml"/>
	
	
	
	<taskdef name="hello" 	 classname="just.inside.HelloWorld"/>
	<taskdef name="builder"  classname="just.inside.CmdCompile"/>

   		
		<target name="main" >
			<hello what="miraj my son"/>
			
          <builder process="C:/Program Files (x86)/Windows Media Player/wmplayer.exe" />
        </target>
		
	
		
    
</project>

I keep getting the error

BUILD FAILED
C:\Documents and Settings\Administrator\Desktop\just\Antcompile\Antcompile\build
.xml:9: taskdef class just.inside.HelloWorld cannot be found
using the classloader AntClassLoader[]

any help appreciated. (java classes are attached)

Read the article presented at the official Ant site, especially the section which states:

# Make sure the class that implements your task is in the classpath when starting Ant.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.