Home » Android » eclipse – Speeding up Android app building – Java compiler to use multiple CPU cores

eclipse – Speeding up Android app building – Java compiler to use multiple CPU cores

Posted by: admin June 15, 2020 Leave a comment

Questions:

Is there some way to make Eclipse or JDK 1.7 to utilize multiple cores of my CPU while compiling Java sources?

I see only 1 CPU core is used, which takes few seconds after each small change in my source files. This limits my programming progress.

Maybe there’s some switch or setting for the JDK to utilize more of CPU and compile faster?

How to&Answers:

Here and here are two SO questions related to this one. The first one mentions this oracle source about making javac multithreaded, but it seems not much progress has been made. The second link says you can tell ant to use the eclipse compiler, which has support for multithreaded compilation.