• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

New computer - slow compiler

 
Raghavendra Shockley
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 !


 
Stephan van Hulst
Bartender
Pie
Posts: 5889
63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 5889
63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20546
56
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Raghavendra Shockley
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 49367
62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Doesn’t sound like a “Beginning Java” question any more, so I shall move this thread.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic