Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » ant unable to find modern editor
ant unable to find modern editor [message #24401] Thu, 15 May 2003 07:22 Go to next message
Eclipse UserFriend
Originally posted by: mark_lybarger.NOSPAMyahoo.com

i'm trying to run my ant script within eclipse, and get an error message
about it not being able to find a modern compiler. any ideas why this
would happen and what can be done to fix? eclipse builds the java files
in my project just fine when editing and such.
Re: ant unable to find modern editor [message #24483 is a reply to message #24401] Thu, 15 May 2003 09:02 Go to previous messageGo to next message
Eclipse UserFriend
Mark,

You need to add a jdk tools.jar to the Ant runtime classpath using the Ant
runtime preference pages.

If you start Eclipse using the -vm arg so that Eclipse is launched using
JDK install, Eclipse will automatically add the tools.jar to the Ant
runtime classpath.

>eclipse builds the java files
> in my project just fine when editing and such.
Eclipse has its own compiler. To use this with Ant's javac you will need to
set the build.compiler property.
More details can be found at
http://eclipsewiki.swiki.net/118#compiler
and
http://dev.eclipse.org/help21/index.jsp?topic=/org.eclipse.j dt.doc.isv/guide
/jdt_api_compile.htm

HTH
Darins

"mark" <mark_lybarger@NOSPAMyahoo.com> wrote in message
news:b9vtac$vjq$1@rogue.oti.com...
> i'm trying to run my ant script within eclipse, and get an error message
> about it not being able to find a modern compiler. any ideas why this
> would happen and what can be done to fix? eclipse builds the java files
> in my project just fine when editing and such.
>
Re: ant unable to find modern editor [message #25518 is a reply to message #24483] Fri, 16 May 2003 04:31 Go to previous message
Eclipse UserFriend
Originally posted by: gael.billard.laposte.net

Adding tools.jar (jdk 1.4) throw : BUILD FAILED:
java.lang.UnsupportedClassVersionError: com/sun/tools/javac/Main
(Unsupported major.minor version 48.0)

And if I add tools.jar (jdk 1.3) it is ok, but my source use jdk 1.4
functionnality and so it can't be compiled with tools.jar (jdk 1.3).

Any idea ?

Darin Swanson wrote:
> Mark,
>
> You need to add a jdk tools.jar to the Ant runtime classpath using the Ant
> runtime preference pages.
>
> If you start Eclipse using the -vm arg so that Eclipse is launched using
> JDK install, Eclipse will automatically add the tools.jar to the Ant
> runtime classpath.
>
>
>>eclipse builds the java files
>>in my project just fine when editing and such.
>
> Eclipse has its own compiler. To use this with Ant's javac you will need to
> set the build.compiler property.
> More details can be found at
> http://eclipsewiki.swiki.net/118#compiler
> and
> http://dev.eclipse.org/help21/index.jsp?topic=/org.eclipse.j dt.doc.isv/guide
> /jdt_api_compile.htm
>
> HTH
> Darins
>
> "mark" <mark_lybarger@NOSPAMyahoo.com> wrote in message
> news:b9vtac$vjq$1@rogue.oti.com...
>
>>i'm trying to run my ant script within eclipse, and get an error message
>>about it not being able to find a modern compiler. any ideas why this
>>would happen and what can be done to fix? eclipse builds the java files
>>in my project just fine when editing and such.
>>
>
>
>
Previous Topic:command line compiling versus GUI
Next Topic:CVS
Goto Forum:
  


Current Time: Wed Mar 12 00:42:03 EDT 2025

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

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

Back to the top