This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 3396
    
    9
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: 3396
    
    9
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: 19556
    
  16

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
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: 36592
    
  16
Doesn’t sound like a “Beginning Java” question any more, so I shall move this thread.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: New computer - slow compiler
 
Similar Threads
Since a SOAP message is transmitted in plain text
Which IDE ??
Random integer generator question
Eclipse vs IntelliJ
WA #1.....word association