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 !
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 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.