Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Ant compile is slow with java 1.6.0_6
Ant compile is slow with java 1.6.0_6 [message #327357] Wed, 16 April 2008 11:12 Go to next message
Denis Molony is currently offline Denis MolonyFriend
Messages: 4
Registered: July 2009
Junior Member
I'm using Eclipse 3.3.2 with java 1.6.0_6. Suddenly a trivial ANT
compile takes 14 seconds, when before it took 1 second.

I can change my Eclipse JRE from U6 to U5 to U4, and the only JRE that
causes a problem is U6. Basically, an ANT compile takes 1 second in U4 and
U5, and 14 seconds in U6.

Anyone know what is causing this?
Re: Ant compile is slow with java 1.6.0_6 [message #327362 is a reply to message #327357] Wed, 16 April 2008 15:05 Go to previous messageGo to next message
Walter Harley is currently offline Walter HarleyFriend
Messages: 847
Registered: July 2009
Senior Member
"Denis Molony" <denis@bytezone.com> wrote in message
news:42f2d497439b4f57feff39038f4fc717$1@www.eclipse.org...
> I'm using Eclipse 3.3.2 with java 1.6.0_6. Suddenly a trivial ANT
> compile takes 14 seconds, when before it took 1 second.
>
> I can change my Eclipse JRE from U6 to U5 to U4, and the only JRE that
> causes a problem is U6. Basically, an ANT compile takes 1 second in U4 and
> U5, and 14 seconds in U6.
>
> Anyone know what is causing this?


Sounds like U6 is causing this. (<slap> sorry, I deserved that...)

But seriously, it sounds like you've found a problem with U6, and the
question is how best to track it down and find a way to report it to Sun,
and in the meanwhile probably stick with U5.

Does the problem happen when you launch your Ant build from the command
line?

Can you isolate a particular file, package, line of code, etc. that makes
the problem happen?

I don't remember what the differences between U5 and U6 were supposed to be,
but ISTR they were security-related? I might be confused on that.
Re: Ant compile is slow with java 1.6.0_6 [message #327381 is a reply to message #327362] Wed, 16 April 2008 22:53 Go to previous messageGo to next message
Denis Molony is currently offline Denis MolonyFriend
Messages: 4
Registered: July 2009
Junior Member
To be honest, I'm not so sure. The compile does work, and it works just as
fast as usual when ANT isn't involved (i.e. just Eclipse). It feels as
though the ANT compile is having to search for the U6 compiler, and
eventually finds it and everything finally proceeds.

I can't find anywhere in Eclipse (say, the ANT preferences) to tell it
where the compiler is, I assume it just uses the 'current' JRE. And as I
said, that works fine for U4 and U5.
Re: Ant compile is slow with java 1.6.0_6 [message #327383 is a reply to message #327381] Thu, 17 April 2008 02:37 Go to previous messageGo to next message
Denis Molony is currently offline Denis MolonyFriend
Messages: 4
Registered: July 2009
Junior Member
I tried it on another machine, with no problems at all. So I went back to
the first machine to see what differences there might be, and as soon as
the machine booted, it worked properly.

I hate computers.

Sorry everyone.
Re: Ant compile is slow with java 1.6.0_6 [message #327402 is a reply to message #327383] Thu, 17 April 2008 16:27 Go to previous message
Walter Harley is currently offline Walter HarleyFriend
Messages: 847
Registered: July 2009
Senior Member
"Denis Molony" <denis@bytezone.com> wrote in message
news:221aed63e0d6c52c649d48db27ba4522$1@www.eclipse.org...
> I hate computers.

Amen to that.
Previous Topic:Update manager to a site that requires basic authentication
Next Topic:multi-threading an IncrementalProjectBuilder??
Goto Forum:
  


Current Time: Fri Jul 05 03:27:33 GMT 2024

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

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

Back to the top