| Author |
New computer - slow compiler
|
Raghavendra Shockley
Ranch Hand
Joined: Jan 21, 2012
Posts: 69
|
|
Using javac ver 1.7 on a PC with windows 7 64 bit. The PC is fast for much heavier apps, fast boot up and shutdown too. Then why does a simple 30-50 line program take about a minute to compile ? Bigger programs with many packages compiled in a few seconds on the older and much slower PC !
|
Back to square one.
|
 |
Stephan van Hulst
Bartender
Joined: Sep 20, 2010
Posts: 3044
|
|
Maybe your installation is bad. I have the same setup you describe, and I don't have any problems.
Try reinstalling the JDK.
|
 |
Raghavendra Shockley
Ranch Hand
Joined: Jan 21, 2012
Posts: 69
|
|
Stephan van Hulst wrote:Maybe your installation is bad. I have the same setup you describe, and I don't have any problems.
Try reinstalling the JDK.
I will try soon. What prompted you to think that the installation may be bad ? I am asking this so that I can learn something new.
|
 |
Stephan van Hulst
Bartender
Joined: Sep 20, 2010
Posts: 3044
|
|
|
Just reasoning. My own setup tells me that the combination of Windows 7 x64 with Java 1.7 is no problem. The program itself isn't a problem. The system itself probably isn't the problem (since you haven't experienced slowness elsewhere). The next most obvious thing to exclude is the JDK installation.
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
I can think of two other reasons for slow compilation:
1) A virus scanner kicking in. At work, McAfee's CPU usage often goes up when I run ANT scripts from Eclipse. Just check your Task Manager.
2) Your hard disk may be the cause of slowness. Use a tool like HD Tune to perform an initial check on the disk.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
Raghavendra Shockley
Ranch Hand
Joined: Jan 21, 2012
Posts: 69
|
|
Rob Spoor wrote:I can think of two other reasons for slow compilation:
1) A virus scanner kicking in. At work, McAfee's CPU usage often goes up when I run ANT scripts from Eclipse. Just check your Task Manager.
I suspect that 1 may be the reason. Will check and reply. Assuming that the AV is the culprit, I wonder why the AV scans at compilation time.
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32599
|
|
|
Doesn’t sound like a “Beginning Java” question any more, so I shall move this thread.
|
 |
 |
|
|
subject: New computer - slow compiler
|
|
|