I shudder to think how many sky high electricity bills and greenhouse gases were released to needlessly compile the same software over and over again.
given the behavior one can only think that software people generally don't care unless it bothers a user metric like 'battery life'.
But, the biggest Java user in term of number of devices is Android. And every time you install an app, you compile it. Including every time you update it (which nowadays is... everyday?). Also it'll recompile in background to use pgo. Nowadays [1] Google could pretty much compile it server-side for most devices, and save a lot of battery wear (batteries wear when getting hot, and compiling, weirdly, heats), in addition to power consumption.
(microsoft's anti-virus)
I don't cool my home, though.