diff --git a/.idea/libraries/rhino_js_1_7R3.xml b/.idea/libraries/rhino_js_1_7R3.xml
deleted file mode 100644
index fa737c39c463..000000000000
--- a/.idea/libraries/rhino_js_1_7R3.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/libraries/rhino_js_1_7R4.xml b/.idea/libraries/rhino_js_1_7R4.xml
new file mode 100644
index 000000000000..5944b7898d50
--- /dev/null
+++ b/.idea/libraries/rhino_js_1_7R4.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/build/scripts/libLicenses.gant b/build/scripts/libLicenses.gant
index 9182b9961798..5cfd0b996507 100644
--- a/build/scripts/libLicenses.gant
+++ b/build/scripts/libLicenses.gant
@@ -240,7 +240,7 @@ libraryLicense(name: "Cucumber-JVM", libraryName: "cucumber-jvm", version: "1.0.
libraryLicense(name: "Cucumber-Groovy", libraryName: "cucumber-groovy", version: "1.0.14", license: "MIT License", url: "https://github.com/cucumber/cucumber-jvm/", licenseUrl: "http://www.opensource.org/licenses/mit-license.html")
libraryLicense(name: "Mantis", libraryName: "mantis", license: "GNU General Public License, version 2", url: "https://github.com/rombert/mantis-axis-soap-client")
libraryLicense(name: "proxy-vole", libraryName: "proxy-vole", version: "20120920", license: "New BSD License", url: "http://code.google.com/p/proxy-vole/", licenseUrl: "http://opensource.org/licenses/BSD-3-Clause")
-libraryLicense(name: "Rhino JavaScript Engine", libraryName: "rhino-js-1_7R3", version: "1.7R3", license: "MPL 1.1", url: "http://www.mozilla.org/rhino/", licenseUrl: "http://www.mozilla.org/MPL/MPL-1.1.html")
+libraryLicense(name: "Rhino JavaScript Engine", libraryName: "rhino-js-1_7R4", version: "1.7R4", license: "MPL 1.1", url: "http://www.mozilla.org/rhino/", licenseUrl: "http://www.mozilla.org/MPL/MPL-1.1.html")
jetbrainsLibrary("JPS")
jetbrainsLibrary("Maven Embedder")
jetbrainsLibrary("tcServiceMessages")
diff --git a/lib/required_for_dist.txt b/lib/required_for_dist.txt
index a6c887fa9bf2..9ef3ea59ed7d 100644
--- a/lib/required_for_dist.txt
+++ b/lib/required_for_dist.txt
@@ -47,5 +47,5 @@ xstream.jar
swingx-core-1.6.2.jar
netty-3.5.8.Final.jar
protobuf-2.4.1.jar
-rhino-js-1_7R3.jar
+rhino-js-1_7R4.jar
proxy-vole_20120920.jar
diff --git a/lib/rhino-js-1_7R3.jar b/lib/rhino-js-1_7R3.jar
deleted file mode 100644
index 878b0d9422bc..000000000000
Binary files a/lib/rhino-js-1_7R3.jar and /dev/null differ
diff --git a/lib/rhino-js-1_7R4.jar b/lib/rhino-js-1_7R4.jar
new file mode 100644
index 000000000000..6f0dafbbc784
Binary files /dev/null and b/lib/rhino-js-1_7R4.jar differ
diff --git a/lib/src/rhino-js-1_7R3.zip b/lib/src/rhino-js-1_7R3.zip
deleted file mode 100644
index d1aa76d15b4a..000000000000
Binary files a/lib/src/rhino-js-1_7R3.zip and /dev/null differ
diff --git a/lib/src/rhino-js-1_7R4.zip b/lib/src/rhino-js-1_7R4.zip
new file mode 100644
index 000000000000..546a3c8a2c8e
Binary files /dev/null and b/lib/src/rhino-js-1_7R4.zip differ