The moose likes General Computing and the fly likes New computer - slow compiler Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "New computer - slow compiler" Watch "New computer - slow compiler" New topic
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: 3989
    
  18

Maybe your installation is bad. I have the same setup you describe, and I don't have any problems.

Try reinstalling the JDK.


The mind is a strange and wonderful thing. I'm not sure that it will ever be able to figure itself out, everything else, maybe. From the atom to the universe, everything, except itself.
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: 3989
    
  18

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: 20079
    
  30

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 - OCEEJBD 6 - OCEJPAD 6
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: 44000
    
  33
Doesn’t sound like a “Beginning Java” question any more, so I shall move this thread.
 
Have you checked out Aspose?
 
subject: New computer - slow compiler
 
It's not a secret anymore!