Title: COMPRESSING WITH MINIFY (PHP exec not available or java not found)
Last modified: September 1, 2020

---

# COMPRESSING WITH MINIFY (PHP exec not available or java not found)

 *  Resolved [therealgilles](https://wordpress.org/support/users/chamois_blanc/)
 * (@chamois_blanc)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/compressing-with-minify-php-exec-not-available-or-java-not-found/)
 * Hello,
 * I am wondering what the following message means:
 * `COMPRESSING WITH MINIFY (PHP exec not available or java not found)`
 * And I mean the part about ‘PHP exec not available or java not found’.
 * Thank you

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [launchinteractive](https://wordpress.org/support/users/launchinteractive/)
 * (@launchinteractive)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/compressing-with-minify-php-exec-not-available-or-java-not-found/#post-13353426)
 * Hi, MMR will try to minify javascript with Google Closure if it can execute the
   java file from PHP. It looks like your hosting doesn’t allow this. Your javascript
   will be minified with PHP Minify instead.
 * Closure will typically result in better minification and smaller files but it
   takes longer and needs hosting permission.
 *  Thread Starter [therealgilles](https://wordpress.org/support/users/chamois_blanc/)
 * (@chamois_blanc)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/compressing-with-minify-php-exec-not-available-or-java-not-found/#post-13636276)
 * Just one more question. It looked to me like using java is more CPU intensive.
   I know java is not particularly lean. Does that track with your experience?
 * It would be great if there were an option to not use java even if it is available.
 * Thank you 🙂
 * PS: It would also be great to get some kind of reporting if the minify libraries
   are not able to minify. I expect they would report an error status.
 *  Plugin Author [launchinteractive](https://wordpress.org/support/users/launchinteractive/)
 * (@launchinteractive)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/compressing-with-minify-php-exec-not-available-or-java-not-found/#post-13636407)
 * Yes in my experience Java does use more CPU. I’ll see if we can add those features.
   If you have the skills feel free to have a go and provide a patch.
 *  Thread Starter [therealgilles](https://wordpress.org/support/users/chamois_blanc/)
 * (@chamois_blanc)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/compressing-with-minify-php-exec-not-available-or-java-not-found/#post-13636420)
 * Okay thanks for confirming. I may give it a go.
 *  Thread Starter [therealgilles](https://wordpress.org/support/users/chamois_blanc/)
 * (@chamois_blanc)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/compressing-with-minify-php-exec-not-available-or-java-not-found/#post-13686098)
 * I saw you already implemented this through PHP global variables. Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘COMPRESSING WITH MINIFY (PHP exec not available or java not found)’ is
closed to new replies.

 * ![](https://ps.w.org/merge-minify-refresh/assets/icon.svg?rev=3414776)
 * [Merge + Minify + Refresh](https://wordpress.org/plugins/merge-minify-refresh/)
 * [Support Threads](https://wordpress.org/support/plugin/merge-minify-refresh/)
 * [Active Topics](https://wordpress.org/support/plugin/merge-minify-refresh/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/merge-minify-refresh/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/merge-minify-refresh/reviews/)

## Tags

 * [java](https://wordpress.org/support/topic-tag/java/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 5 replies
 * 2 participants
 * Last reply from: [therealgilles](https://wordpress.org/support/users/chamois_blanc/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/compressing-with-minify-php-exec-not-available-or-java-not-found/#post-13686098)
 * Status: resolved