Skip to main content



      Home
Home » Newcomers » Newcomers » Eclipse/Ant JDTCompilerAdapter' can't be found.
Eclipse/Ant JDTCompilerAdapter' can't be found. [message #78277] Wed, 15 June 2005 20:26 Go to next message
Eclipse UserFriend
Originally posted by: mot12345.alexandria.ucsb.edu

Eclipse/Ant JDTCompilerAdapter' can't be found.

I'm trying to use the Eclipse built-in Ant for the first time. Following
some XML build file (build.xml) example, I'm setting a property like this:
<property name="build.compiler"
value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
(longer code snippet appended).

On running the Eclipse context menu "Ant Build" on the build file, I get
an error
"...Compiler Adapter 'org.eclipse.jdt.core.JDTCompilerAdapter' can't be
found."

Now I do see a file in the Eclipse directory
C:\eclipse\plugins\org.eclipse.jdt.core_3.0.1\jdtCompilerAda pter.jar

But because of the ...3.0.1... using this in the property definition, like
value="org.eclipse.jdt.core_3.0.1.JDTCompilerAdapter"/>
wouldn't make sense (and when I tried didn't fix the error)

Does anybody out there have experience with this?
Any suggestions on what to do here?

Thanks,
Wolfgang R.
Santa Barbara, CA

Longer build.xml code snippet:
==============================
<?xml version="1.0" encoding = "UTF-8"?>
<project name="Ch05_01" 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}/ch05_01.jar"/>
<property name="build.compiler"
value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
Re: Eclipse/Ant JDTCompilerAdapter' can't be found. [message #78306 is a reply to message #78277] Wed, 15 June 2005 21:19 Go to previous message
Eclipse UserFriend
Likely you are running in a separate JRE (see the JRE tab for your Ant
launch configuration)?

Set to run in the same JRE or add the jdtCompilerAdapter.jar and jdtcore.jar
(for Eclipse 3.0.1) to Ant runtime classpath

Of course you do not need to set the build.compiler property and then you
will use the javac supplied with your handy JDK install instead of the
Eclipse compiler.

HTH
Darins

"Wolfgang R" <mot12345@alexandria.ucsb.edu> wrote in message
news:d70614054b96e78e6ef70788da8e4a5f$1@www.eclipse.org...
> Eclipse/Ant JDTCompilerAdapter' can't be found.
>
> I'm trying to use the Eclipse built-in Ant for the first time. Following
> some XML build file (build.xml) example, I'm setting a property like this:
> <property name="build.compiler"
> value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
> (longer code snippet appended).
>
> On running the Eclipse context menu "Ant Build" on the build file, I get
> an error
> "...Compiler Adapter 'org.eclipse.jdt.core.JDTCompilerAdapter' can't be
> found."
>
> Now I do see a file in the Eclipse directory
> C:\eclipse\plugins\org.eclipse.jdt.core_3.0.1\jdtCompilerAda pter.jar
>
> But because of the ...3.0.1... using this in the property definition, like
> value="org.eclipse.jdt.core_3.0.1.JDTCompilerAdapter"/>
> wouldn't make sense (and when I tried didn't fix the error)
>
> Does anybody out there have experience with this?
> Any suggestions on what to do here?
>
> Thanks,
> Wolfgang R.
> Santa Barbara, CA
>
> Longer build.xml code snippet:
> ==============================
> <?xml version="1.0" encoding = "UTF-8"?>
> <project name="Ch05_01" 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}/ch05_01.jar"/>
> <property name="build.compiler"
> value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
>
>
Previous Topic:Appropriate/best newsgroup for an Eclipse/CVS question
Next Topic:eclipse-error Could not find framework
Goto Forum:
  


Current Time: Sun Jun 01 16:55:26 EDT 2025

Powered by FUDForum. Page generated in 0.08043 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top