Rhino (JavaScript-Engine)

Rhino

Basisdaten

Entwickler Mozilla Foundation
Erscheinungsjahr 1997
Aktuelle Version 1.9.1[1]
(15. Februar 2026)
Betriebssystem plattformübergreifend
Programmier­sprache Java
Kategorie JavaScript-Engine
Lizenz MPL-2.0[2]
mozilla.github.io/rhino/

Rhino ist eine quelloffene JavaScript-Engine. Sie ist vollständig in Java geschrieben und wird vom Mozilla-Projekt entwickelt. Das Rhino-Projekt wurde 1997 von Netscape als Teil eines geplanten, komplett in Java geschriebenen Nachfolgers des alten Netscape-Browsers ins Leben gerufen. 1998 wurde der Quelltext an das Mozilla-Projekt übergeben und geöffnet.[3]

Das Projekt ist nach dem auf der Titelseite eines JavaScript-Buches aus dem O’Reilly Verlag abgebildeten Nashorn benannt.

Funktionsumfang

Rhino kann JavaScript-Code sowohl in Java-Bytecode kompilieren als auch zur Laufzeit interpretieren. Die Einbindung in die Java-Welt ist gut gelungen, so dass sich Rhino ebenso eingebettet als Scripting-Engine als auch als eigenständige Programmiersprache für die Java-VM eignet. Ein einfacher Debugger ist im Download enthalten.

Seit März 2008 implementiert Rhino JavaScript der Version 1.7 vollständig;[4] auch ECMAScript for XML, eine Erweiterung von ECMAScript, die XML als nativen Datentyp erlaubt, ist im Lieferumfang enthalten.

Verwandte Programmiersprachen

  • BeanShell, eine dynamische Skriptsprache für die Java-VM, die es erlaubt, nahezu unveränderten Java-Code durch einen Interpreter auszuführen
  • Java Command Language (JACL), ein in Java geschriebener Tcl-Interpreter
  • JRuby, eine Implementierung der Programmiersprache Ruby für die Java-Laufzeitumgebung
  • Jython (früher: JPython), eine reine Java-Implementierung der Programmiersprache Python, die die Ausführung von Python-Programmen auf jeder Java-Plattform ermöglicht
  • Groovy, eine dynamisch typisierte Programmiersprache und Skriptsprache für die Java Virtual Machine

Einzelnachweise

  1. Release 1.9.1. 15. Februar 2026 (abgerufen am 4. April 2026).
  2. github.com.
  3. Rhino history - Mozilla | MDN. 22. Oktober 2020, abgerufen am 29. Juli 2024.
  4. https://developer.mozilla.org/en/New_in_Rhino_1.7R1

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.