Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Setting Java.Home for ant
Setting Java.Home for ant [message #64993] Mon, 23 June 2003 09:17 Go to next message
Eclipse UserFriend
Originally posted by: mark.home.com

Hi folks,
I can\'t seem to locate where ant in Eclipse is retrieving it\'s
java.home from? It says that it\'s located at c:\\program
files\\java\\j2re1.4.1_01 and there is in fact something at that point but
as it doesn\'t contain the tools.jar it means that can\'t perform any
compilation.

I\'ve checked under Windows->Preferences->Java->Installed JRES and it
points to the full j2sdk under c:\\j2sdk1.4.1_01 which is fine it\'s just
the ant tool that has it mixed up.. Where do I set this value?

Thanks,
Mark.
Re: Setting Java.Home for ant [message #65001 is a reply to message #64993] Mon, 23 June 2003 09:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hcs33.egon.gyaloglo.hu

Hi,

Maybe the simplest way is to specify the jdk Eclipse uses (because ant runs
on the same vm as Eclipse in 2.0 and 2.1).
Start Eclipse with the -vm parameter, ie.: eclipse.exe -vm
c:\j2sdk1.4.1_01\bin\javaw.exe.

HTH,
Regards,
Csaba

"mark" <mark@home.com> wrote in message news:bd6gjm$v4r$1@rogue.oti.com...
> Hi folks,
> I can\'t seem to locate where ant in Eclipse is retrieving it\'s
> java.home from? It says that it\'s located at c:\\program
> files\\java\\j2re1.4.1_01 and there is in fact something at that point but
> as it doesn\'t contain the tools.jar it means that can\'t perform any
> compilation.
>
> I\'ve checked under Windows->Preferences->Java->Installed JRES and it
> points to the full j2sdk under c:\\j2sdk1.4.1_01 which is fine it\'s just
> the ant tool that has it mixed up.. Where do I set this value?
>
> Thanks,
> Mark.
>
Re: Setting Java.Home for ant [message #65232 is a reply to message #65001] Mon, 23 June 2003 16:38 Go to previous message
Eclipse UserFriend
Originally posted by: mark.home.com

Thanks a million for that Csaba. Had me flummoxed for days.

Thanks,
Mark.

Horváth, Csaba wrote:

> Hi,

> Maybe the simplest way is to specify the jdk Eclipse uses (because ant runs
> on the same vm as Eclipse in 2.0 and 2.1).
> Start Eclipse with the -vm parameter, ie.: eclipse.exe -vm
> c:\\j2sdk1.4.1_01\\bin\\javaw.exe.

> HTH,
> Regards,
> Csaba

> \"mark\" <mark@home.com> wrote in message news:bd6gjm$v4r$1@rogue.oti.com...
> > Hi folks,
> > I can\\\'t seem to locate where ant in Eclipse is retrieving
it\\\'s
> > java.home from? It says that it\\\'s located at c:\\\\program
> > files\\\\java\\\\j2re1.4.1_01 and there is in fact something at that point
but
> > as it doesn\\\'t contain the tools.jar it means that can\\\'t perform any
> > compilation.
> >
> > I\\\'ve checked under Windows->Preferences->Java->Installed JRES and it
> > points to the full j2sdk under c:\\\\j2sdk1.4.1_01 which is fine it\\\'s
just
> > the ant tool that has it mixed up.. Where do I set this value?
> >
> > Thanks,
> > Mark.
> >
Previous Topic:Eclipse and Nokia emulator
Next Topic:Use this type instead of that type
Goto Forum:
  


Current Time: Sat Oct 19 13:20:48 GMT 2024

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

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

Back to the top