mozilla/rhino


Rhino is an open-source implementation of JavaScript written entirely in Java

https://www.mozilla.org/rhino/

License: MPL-2.0

Language: C++


Rhino: JavaScript in Java

Rhino

Rhino is an implementation of JavaScript in Java.

License

Rhino is licensed under the MPL 2.0.

Releases

Rhino 1.7R5 January 29, 2015
Rhino 1.7.6 April 15, 2015
Rhino 1.7.7 June 17, 2015
Rhino 1.7.7.1 February 2, 2016
Rhino 1.7.7.2 August 24, 2017
Rhino 1.7.8 January 22, 2018
Rhino 1.7.9 March 15, 2018

Release Notes for recent releases.

Compatibility table which shows which advanced JavaScript features from ES5, 6, and 7 are implemented in Rhino.

Documentation

Information for script builders and embedders:

https://developer.mozilla.org/en-US/docs/Rhino_documentation

JavaDoc for all the APIs:

http://mozilla.github.io/rhino/javadoc/index.html

More resources if you get stuck:

https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Rhino/Community

Building

How to Build

Rhino builds with Gradle. Here are some useful tasks:

./gradlew jar

Build and create Rhino jar in the buildGradle/libs directory.

./gradlew test

Build and run all the tests.

./gradlew testBenchmark

Build and run benchmark tests.

Releasing and publishing new version

  1. Ensure all tests are passing
  2. Remove -SNAPSHOT from version in gradle.properties in project root folder
  3. Create file gradle.properties in $HOME/.gradle folder with following properties. Populate them with maven repo credentials and repo location.
mavenUser=
mavenPassword=
mavenSnapshotRepo=
mavenReleaseRepo=
  1. Run Gradle task to publish artifacts to Maven Central.
./gradlew publish
  1. Increase version and add -SNAPSHOT to it in gradle.properties in project root folder.
  2. Push gradle.properties to GitHub

Running

Rhino can run as a stand-alone interpreter from the command line:

java -jar buildGradle/libs/rhino-1.7.9.jar
Rhino 1.7.9 2018 03 15
js> print('Hello, World!');
Hello, World!
js>

You can also embed it, as most people do. See below for more docs.

Issues

Most issues are managed on GitHub:

https://github.com/mozilla/rhino/issues

More Help

The Google group is the best place to go with questions:

https://groups.google.com/forum/#!forum/mozilla-rhino

Project Statistics

Sourcerank 16
Repository Size 18.3 MB
Stars 2,002
Forks 500
Watchers 166
Open issues 139
Dependencies 2
Contributors 40
Tags 39
Created
Last updated
Last pushed

Top Contributors See all

Igor Bukanov norrisboyd Hannes Wallnöfer Attila Szegedi Evgeny Shepelyuk André Bargull Greg Brail tuchida Ivan Vyshnevskyi RBRi tntim96 Masami HIRATA Michael[tm] Smith Emmanuel Bourg Travis Ennis Ahmed Ashour Ian Sollars Raphael Speyer Edison Guo Kyle Cronin

Packages Referencing this Repo

org.mozilla:rhino
Rhino is an open-source implementation of JavaScript written entirely in Java. It is typically em...
Latest release 1.7.10 - Updated - 2K stars
rhino
Rhino is an open-source implementation of JavaScript written entirely in Java. It is typically em...
Latest release 1.7.7.2 - Published - 2K stars

Recent Tags See all

Rhino1_7_10_Release April 09, 2018
Rhino1_7_9_Release March 15, 2018
Rhino1_7_8_Release January 22, 2018
Rhino1_7_8_RC1_RELEASE December 22, 2017
Rhino1_7_7_2_Release August 24, 2017
Rhino1_7_7_1_RELEASE February 01, 2016
Rhino1_7_7_RELEASE June 17, 2015
Rhino1_7_6_RELEASE April 15, 2015
Rhino1_7R5_RELEASE January 30, 2015
Rhino1_7R4_RELEASE June 18, 2012
Rhino1_7R3_RELEASE April 25, 2011
head November 13, 2008
BEFORE_AST August 31, 2008
Rhino1_6R6_RELEASE July 23, 2007
RHINO_2007_02_05_08_30 February 05, 2007

Interesting Forks See all

my2iu/babylscript
Babylscript is a modification of the Mozilla Rhino JavaScript engine for Java. It extends JavaScr...
Java - Other - Last pushed - 16 stars - 3 forks
apigee/rhino
Rhino is an open-source implementation of JavaScript written entirely in Java
Java - MPL-2.0 - Last pushed - 13 stars - 1 forks
HtmlUnit/htmlunit-rhino-fork
htmlunit-core-js is HtmlUnit's Rhino fork
C++ - MPL-2.0 - Last pushed - 7 stars - 5 forks
InstantWebP2P/rhino-android
Hack Rhino on Android
Java - MPL-2.0 - Last pushed - 7 stars - 3 forks
jsdoc3/rhino
Rhino is an open-source implementation of JavaScript written entirely in Java
Java - MPL-2.0 - Last pushed - 4 stars - 2 forks

Something wrong with this page? Make a suggestion

Last synced: 2018-04-10 15:02:22 UTC

Login to resync this repository