Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Newbie: Ant, Javac & Eclipse
Newbie: Ant, Javac & Eclipse [message #101055] Sun, 27 July 2003 21:31 Go to next message
Eclipse UserFriend
Originally posted by: gentijo.eyecatching.com

When I run Ant from Eclipse, my javac task get a NoClassFound JDK.
Command line is OK, do I have to redefine the JAVA_HOME in my project
somewhere ??
Re: Newbie: Ant, Javac & Eclipse [message #101267 is a reply to message #101055] Mon, 28 July 2003 02:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ijonas.ijonas.com

try checking your JRE setup in

Window --> Preferences --> Java --> Installed JREs



"John Gentilin" <gentijo@eyecatching.com> wrote in message
news:3F247CED.9010108@eyecatching.com...
> When I run Ant from Eclipse, my javac task get a NoClassFound JDK.
> Command line is OK, do I have to redefine the JAVA_HOME in my project
> somewhere ??
>
>
Re: Newbie: Ant, Javac & Eclipse [message #101626 is a reply to message #101267] Mon, 28 July 2003 12:44 Go to previous message
Eclipse UserFriend
In 2.1 the Installed JREs within Eclipse has no impact on running Ant within
Eclipse.
In 2.1 Ant always runs in the same JRE or JDK VM that Eclipse was launched
with.
Even in 3.0 you have to explicitly set an Ant build to occur in a separate
VM.

Correct solution:
You need to have a JDK tools.jar on the Ant runtime classpath using the
Ant preference pages.

This is done for you automatically if you start Eclipse using a JVM from a
JDK install. This is accomplished using the -vm arg.

Alternately, you can set the build.compiler property to
"org.eclipse.jdt.core.JDTCompilerAdapter" if you wish to use Eclipse's
internal compiler.

HTH
Darins

"Ijonas Kisselbach" <ijonas@ijonas.com> wrote in message
news:bg2g2h$grm$1@eclipse.org...
> try checking your JRE setup in
>
> Window --> Preferences --> Java --> Installed JREs
>
>
>
> "John Gentilin" <gentijo@eyecatching.com> wrote in message
> news:3F247CED.9010108@eyecatching.com...
> > When I run Ant from Eclipse, my javac task get a NoClassFound JDK.
> > Command line is OK, do I have to redefine the JAVA_HOME in my project
> > somewhere ??
> >
> >
>
>
Previous Topic:Stopping the debugger perspective when running launches.
Next Topic:CVS label decoraters disappears in M2
Goto Forum:
  


Current Time: Thu Jul 17 23:15:50 EDT 2025

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

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

Back to the top