Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

org.eclipse.jdt.core.JDTCompilerAdapter class Notfound error In eclipse ant

843810Dec 29 2007 — edited Jan 23 2008
hi this is my ant build.xml file

my eclipse ver : 3.3.0
when i try to run this build file i am getting the error repeatedly

please some one solve my problem i am unable find solution on eclipse
forum site please help me
thank you
<?xml version = "1.0" encoding = "UTF-8" ?>
<project name = "AntPractice" default = "Main Build" basedir=".">
	<property name="bin" location="bin"/>
	<property name="src" location="src"/>
	<property name="jardir" location="${bin}/lib"/>
	<property name="jarfile" location="${jardir}/AntPractice.jar"/>
	<property name="build.compiler"      value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
    <target name="Main Build" depends="Initialize, compile, jar">
		<echo message = "Ant At Work!" />
    </target>
	
    <target name="Initialize">
    	<delete dir = "${bin}" />
    	<delete dir = "${jardir}" />
    	<mkdir dir="${bin}"/>
    	<mkdir dir="${jardir}"/>            
    </target>    	
    <target name="compile" depends="Initialize">
    	<javac srcdir="${src}" destdir="${bin}">
    	</javac>
    </target>    
    <target name="jar" depends="Initialize, compile" >
		<jar destfile="${jarfile}" basedir="${bin}" />
    </target>
</project>
my run output is:
Buildfile: G:\eclipse installation dir\shiva eclipse workspace\AntPractice\build.xml
Initialize:
[delete] Deleting directory G:\eclipse installation dir\shiva eclipse workspace\AntPractice\bin
[mkdir] Created dir: G:\eclipse installation dir\shiva eclipse workspace\AntPractice\bin
[mkdir] Created dir: G:\eclipse installation dir\shiva eclipse workspace\AntPractice\bin\lib
compile:
[javac] Compiling 1 source file to G:\eclipse installation dir\shiva eclipse workspace\AntPractice\bin

BUILD FAILED
G:\eclipse installation dir\shiva eclipse workspace\AntPractice\build.xml:25: Class not found: org.eclipse.jdt.core.JDTCompilerAdapter

Total time: 922 milliseconds

please don't tell see in eclipse or other site
i am unable to find solution there
if needed i ll mail my small first AntProject ZIP file its just 2KB

thanx in advance

shiva_forums
@ yahoo
.co
.uk
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 20 2008
Added on Dec 29 2007
4 comments
2,935 views