Eclipse/Ant JDTCompilerAdapter' can't be found. [message #78277] |
Wed, 15 June 2005 20:26  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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"/>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.08043 seconds