Title: JAVA executable (/usr/bin/java) is not a valid file.
Last modified: August 21, 2016

---

# JAVA executable (/usr/bin/java) is not a valid file.

 *  Resolved [yazeedaloyoun](https://wordpress.org/support/users/yazeedaloyoun/)
 * (@yazeedaloyoun)
 * [13 years ago](https://wordpress.org/support/topic/java-executable-usrbinjava-is-not-a-valid-file/)
 * Experiencing problems with the standard minify and JavaScript, we opted to install
   the YUI compressor.
 * This command works, displaying the usage (options) info:
    /usr/bin/java -jar /
   usr/share/yuicompressor/build/yuicompressor-2.4.7.jar
 * Java is:
    java version “1.6.0_20” OpenJDK Runtime Environment (IcedTea6 1.9.8)(
   rhel-1.22.1.9.8.el5_6-i386) OpenJDK Client VM (build 19.0-b09, mixed mode) But
   in W3TC the minify options say:
 * JAVA executable (/usr/bin/java) is not a valid file.
 * Any pointers on what might be wrong here? Do we need to install PHP/Java bridge
   or something?
 * Help greatly appreciated! 🙂
 * [http://wordpress.org/extend/plugins/w3-total-cache/](http://wordpress.org/extend/plugins/w3-total-cache/)

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

 *  Thread Starter [yazeedaloyoun](https://wordpress.org/support/users/yazeedaloyoun/)
 * (@yazeedaloyoun)
 * [13 years ago](https://wordpress.org/support/topic/java-executable-usrbinjava-is-not-a-valid-file/#post-3794866)
 * Even stranger, when I run the test from w3tc cache for yui-compressor, it says
   OK with a green light, but still I can’t get rid of that error on top of the 
   page.
 *  Thread Starter [yazeedaloyoun](https://wordpress.org/support/users/yazeedaloyoun/)
 * (@yazeedaloyoun)
 * [13 years ago](https://wordpress.org/support/topic/java-executable-usrbinjava-is-not-a-valid-file/#post-3794867)
 * Found out I needed to set the paths twice, once for JS and another for CSS, my
   bad.

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

The topic ‘JAVA executable (/usr/bin/java) is not a valid file.’ is closed to new
replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [yazeedaloyoun](https://wordpress.org/support/users/yazeedaloyoun/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/java-executable-usrbinjava-is-not-a-valid-file/#post-3794867)
 * Status: resolved