ant with java 6 update 6 is slow

D

denisbytezone

I'm using Eclipse 3.3.2 with java 6 update 6. Suddenly a trivial
compile takes 14 seconds, when before it took 1 second.

I can change my Eclipse jre from update 6 to update 5 and back, and
whenever I use update 5, the compile time goes back to 1 second.

Anyone know what is causing this?
 
R

Roedy Green

I'm using Eclipse 3.3.2 with java 6 update 6. Suddenly a trivial
compile takes 14 seconds, when before it took 1 second.

I can change my Eclipse jre from update 6 to update 5 and back, and
whenever I use update 5, the compile time goes back to 1 second.

When you use ANT impendent of Eclipse, how does it behave?

Is your JAVA_HOME and Path set correctly?

See http://mindprod.com/jgloss/jdk.html
 
D

denisbytezone

When you use ANT impendent of Eclipse, how does it behave?

Is your JAVA_HOME and Path set correctly?

Seehttp://mindprod.com/jgloss/jdk.html

That's all handled internally by Eclipse. To prove it, I can set my
JRE (inside Eclipse) to update 4, 5 or 6. Compile times are normal
when just using Eclipse, but when using ANT compile takes 1 second
(U4), 1 second (U5), 14 seconds (U6). If it was a path problem, 2 out
of 3 would be slow.

I never use ANT outside Eclipse.
 
R

Roedy Green

To prove it, I can set my
JRE (inside Eclipse) to update 4, 5 or 6.

There is a difference between choosing JREs and choosing source and
object target levels. Do you actually have all three JRE's installed?

It seems to me you should be selecting JDKs not JREs in any case,
since you want to change the Java compiler not just the Java than runs
ANT.

I use ANT outside of Eclipse, with JDK 1.0.6_06. I don't experience
any slowdown.

This is why I think the problem is with Eclipse not Ant/Java.

That is why I think it would help to narrow down the problem by
running your ANT script outside of Eclipse.
 
D

dlafrance

I'm seeing the same problem, and we are using Ant without Eclipse.

Has there been any update on your problem?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top