Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Run ANT with different JVM
Run ANT with different JVM [message #48944] Wed, 04 June 2003 12:13 Go to next message
Eclipse UserFriend
Originally posted by: schutzerj.hotmail.com

Can anybody tell me if it is possible to run Ant in another JVM then the one
that I use to run Eclipse. I need to use Java 1.4 to run Eclipse since some
nice plugins requires that but our applications must be compiled with Java
1.3.

Please help me with this since it prevents us from using Eclipse.

Regards,
Joakim Andersson
Lorensbergs Communication
Re: Run ANT with different JVM [message #48974 is a reply to message #48944] Wed, 04 June 2003 17:10 Go to previous messageGo to next message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
In the latest integration builds this is possible. It will be available in
the milestone 1 build that will be coming out (hopefully) at the end of this
week.
See the JRE tab that is now available for any Ant launch configuration.

But to achieve what you desire you do not need to launch Ant in a separate
VM.
The javac task of Ant support specifying a target attribute.
Use something like
<javac target="1.3" ...>
</javac>
This will generate 1.3 VM compatible class files.
HTH
Darins

"Joakim Andersson" <schutzerj@hotmail.com> wrote in message
news:bbl861$akp$1@rogue.oti.com...
> Can anybody tell me if it is possible to run Ant in another JVM then the
one
> that I use to run Eclipse. I need to use Java 1.4 to run Eclipse since
some
> nice plugins requires that but our applications must be compiled with Java
> 1.3.
>
> Please help me with this since it prevents us from using Eclipse.
>
> Regards,
> Joakim Andersson
> Lorensbergs Communication
>
>
Re: Run ANT with different JVM [message #49833 is a reply to message #48974] Thu, 05 June 2003 08:35 Go to previous message
Eclipse UserFriend
Originally posted by: schutzerj.hotmail.com

Hi,

Thank you for that information. I guess that I have to wait then. I have
allready tested the target property of ant but it doesn't work. The problem
is the following:

[javac] bad class file:
C:\Progra~1\Java-1.4.1_02\jre\lib\rt.jar(java/util/TimerTask .class)
[javac] class file has wrong version 48.0, should be 47.0
[javac] Please remove or make sure it appears in the correct
subdirectory of the classpath.
[javac] import java.util.TimerTask;

It works if I run it through the 1.3 compiler but not through the 1.4
compiler.

/Joakim

"Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
news:bbl94b$bev$1@rogue.oti.com...
> In the latest integration builds this is possible. It will be available in
> the milestone 1 build that will be coming out (hopefully) at the end of
this
> week.
> See the JRE tab that is now available for any Ant launch configuration.
>
> But to achieve what you desire you do not need to launch Ant in a separate
> VM.
> The javac task of Ant support specifying a target attribute.
> Use something like
> <javac target="1.3" ...>
> </javac>
> This will generate 1.3 VM compatible class files.
> HTH
> Darins
>
> "Joakim Andersson" <schutzerj@hotmail.com> wrote in message
> news:bbl861$akp$1@rogue.oti.com...
> > Can anybody tell me if it is possible to run Ant in another JVM then the
> one
> > that I use to run Eclipse. I need to use Java 1.4 to run Eclipse since
> some
> > nice plugins requires that but our applications must be compiled with
Java
> > 1.3.
> >
> > Please help me with this since it prevents us from using Eclipse.
> >
> > Regards,
> > Joakim Andersson
> > Lorensbergs Communication
> >
> >
>
>
Previous Topic:build/rebuild problems
Next Topic:Assigning an additionally none java file extension for build/compilation...?
Goto Forum:
  


Current Time: Fri Dec 27 03:47:18 GMT 2024

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

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

Back to the top