|Maven Central| |Discord| |Donate|
|Linux x86_64 Build| |MacOS x86_64 Build| |MacOS arm64 Build| |Windows x86_64 Build| |Android Node Build| |Android V8 Build|
.. |Maven Central| image:: https://img.shields.io/maven-central/v/com.caoccao.javet/javet?style=for-the-badge :target: https://central.sonatype.com/search?q=g:com.caoccao.javet
.. |Discord| image:: https://img.shields.io/discord/870518906115211305?label=join%20our%20Discord&style=for-the-badge :target: https://discord.gg/R4vvKU96gw
.. |Donate| image:: https://img.shields.io/badge/Donate-green?style=for-the-badge :target: https://opencollective.com/javet
.. |Linux x86_64 Build| image:: https://github.com/caoccao/Javet/actions/workflows/linux_x86_64_build.yml/badge.svg :target: https://github.com/caoccao/Javet/actions/workflows/linux_x86_64_build.yml
.. |MacOS x86_64 Build| image:: https://github.com/caoccao/Javet/actions/workflows/macos_x86_64_build.yml/badge.svg :target: https://github.com/caoccao/Javet/actions/workflows/macos_x86_64_build.yml
.. |MacOS arm64 Build| image:: https://github.com/caoccao/Javet/actions/workflows/macos_arm64_build.yml/badge.svg :target: https://github.com/caoccao/Javet/actions/workflows/macos_arm64_build.yml
.. |Windows x86_64 Build| image:: https://github.com/caoccao/Javet/actions/workflows/windows_x86_64_build.yml/badge.svg :target: https://github.com/caoccao/Javet/actions/workflows/windows_x86_64_build.yml
.. |Android Node Build| image:: https://github.com/caoccao/Javet/actions/workflows/android_node_build.yml/badge.svg :target: https://github.com/caoccao/Javet/actions/workflows/android_node_build.yml
.. |Android V8 Build| image:: https://github.com/caoccao/Javet/actions/workflows/android_v8_build.yml/badge.svg :target: https://github.com/caoccao/Javet/actions/workflows/android_v8_build.yml
Javet <https://github.com/caoccao/Javet/>
_ is Java + V8 (JAVa + V + EighT). It is an awesome way of embedding Node.js and V8 in Java.
If you like my work, please Star this project. And, you may follow me @sjtucaocao <https://twitter.com/sjtucaocao>
, or visit https://blog.caoccao.com/ or https://caoccao.blogspot.com/. And the official support channel is at discord <https://discord.gg/R4vvKU96gw>
.
π If you like my work, please donate <https://opencollective.com/javet>
_ to support me. If you have a retired Mac OS (x86_64) device and are fine with mailing it to me, that will be great because I don't have such device to support the community. Thank you for supporting Javet.
=========== ======= ======= ======= ======= CPU Arch Android Linux MacOS Windows =========== ======= ======= ======= ======= x86 βοΈ β β β x86_64 βοΈ βοΈ βοΈ βοΈ arm βοΈ β β β arm64 βοΈ βοΈ βοΈ β =========== ======= ======= ======= =======
v20.17.0
+ V8 v12.9.202.18
Javenode <https://github.com/caoccao/Javenode>
_swc4j <https://github.com/caoccao/swc4j>
_swc4j <https://github.com/caoccao/swc4j>
_JavetShell <https://github.com/caoccao/JavetShell>
_Maven ^^^^^
.. code-block:: xml
<!-- Linux and Windows (x86_64) -->
<dependency>
<groupId>com.caoccao.javet</groupId>
<artifactId>javet</artifactId>
<version>3.1.8</version>
</dependency>
<!-- Linux (arm64) -->
<dependency>
<groupId>com.caoccao.javet</groupId>
<artifactId>javet-linux-arm64</artifactId>
<version>3.1.8</version>
</dependency>
<!-- Mac OS (x86_64 and arm64) -->
<dependency>
<groupId>com.caoccao.javet</groupId>
<artifactId>javet-macos</artifactId>
<version>3.1.8</version>
</dependency>
Gradle Kotlin DSL ^^^^^^^^^^^^^^^^^
.. code-block:: kotlin
implementation("com.caoccao.javet:javet:3.1.8") // Linux and Windows (x86_64)
implementation("com.caoccao.javet:javet-linux-arm64:3.1.8") // Linux (arm64)
implementation("com.caoccao.javet:javet-macos:3.1.8") // Mac OS (x86_64 and arm64)
implementation("com.caoccao.javet:javet-android-node:3.1.8") // Android Node (arm, arm64, x86 and x86_64)
implementation("com.caoccao.javet:javet-android-v8:3.1.8") // Android V8 (arm, arm64, x86 and x86_64)
Gradle Groovy DSL ^^^^^^^^^^^^^^^^^
.. code-block:: groovy
implementation 'com.caoccao.javet:javet:3.1.8' // Linux and Windows (x86_64)
implementation 'com.caoccao.javet:javet-linux-arm64:3.1.8' // Linux (arm64)
implementation 'com.caoccao.javet:javet-macos:3.1.8' // Mac OS (x86_64 and arm64)
implementation 'com.caoccao.javet:javet-android-node:3.1.8' // Android Node (arm, arm64, x86 and x86_64)
implementation 'com.caoccao.javet:javet-android-v8:3.1.8' // Android V8 (arm, arm64, x86 and x86_64)
.. code-block:: java
// Node.js Mode
try (V8Runtime v8Runtime = V8Host.getNodeInstance().createV8Runtime()) {
System.out.println(v8Runtime.getExecutor("'Hello Javet'").executeString());
}
// V8 Mode
try (V8Runtime v8Runtime = V8Host.getV8Instance().createV8Runtime()) {
System.out.println(v8Runtime.getExecutor("'Hello Javet'").executeString());
}
HiveMQ <https://www.hivemq.com/>
| SheetJS <https://www.sheetjs.com/>
APACHE LICENSE, VERSION 2.0 <https://github.com/caoccao/Javet/blob/main/LICENSE>
_
Performance Comparison of GraalJS, Javet and Nashorn <https://blog.caoccao.com/performance-comparison-of-graaljs-javet-and-nashorn-7bae6925826a>
_How to Elegantly Expose JsonNode in V8 <https://blog.caoccao.com/how-to-elegantly-expose-jsonnode-in-v8-638aff9da549>
_How to Compromise V8 on JVM <https://blog.caoccao.com/how-to-compromise-v8-on-jvm-ceb385572461>
_Is TypeScript a Good Choice for a Script Engine? <https://blog.caoccao.com/is-typescript-a-good-choice-for-a-script-engine-01fe69921ace>
_Run TypeScript Directly in Java <https://blog.caoccao.com/run-typescript-directly-in-java-82b7003b44b8>
_Javet Intro <https://docs.google.com/presentation/d/1lQ8xIHuywuE0ydqm2w6xq8OeQZO_WeTLYXW9bNflQb8/>
_Javet Javadoc <https://www.caoccao.com/Javet/reference/javadoc/index.html>
_Javet Document Portal <https://www.caoccao.com/Javet/>
_