





Javet adalah Java + V8 (Java + V + Eight). Ini adalah cara yang luar biasa untuk menanamkan Node.js dan V8 di Java.
Jika Anda menyukai pekerjaan saya, silakan bintangi proyek ini. Dan, Anda dapat mengikuti saya @sjtucaocao, atau kunjungi https://blog.caoccao.com/ atau https://caoccao.blogspot.com/. Dan saluran dukungan resmi ada di perselisihan.
? Jika Anda menyukai pekerjaan saya, silakan donasi untuk mendukung saya. Jika Anda memiliki perangkat Mac OS (x86_64) yang sudah pensiun dan baik -baik saja dengan mengirimkannya kepada saya, itu akan bagus karena saya tidak memiliki perangkat seperti itu untuk mendukung komunitas. Terima kasih telah mendukung Javet.
| CPU Arch | Android | Linux | MacOS | Windows |
|---|---|---|---|---|
| x86 | ✔️ | |||
| x86_64 | ✔️ | ✔️ | ✔️ | ✔️ |
| lengan | ✔️ | |||
| ARM64 | ✔️ | ✔️ | ✔️ |
v22.12.0 + v8 v13.2.152.16 <!-- Core (Must-have) -->
< dependency >
< groupId >com.caoccao.javet</ groupId >
< artifactId >javet</ artifactId >
< version >4.1.1</ version >
</ dependency >
<!-- Node.js Linux (x86_64) -->
< dependency >
< groupId >com.caoccao.javet</ groupId >
< artifactId >javet-node-linux-x86_64</ artifactId >
< version >4.1.1</ version >
</ dependency >
<!-- Node.js Linux (arm64) -->
< dependency >
< groupId >com.caoccao.javet</ groupId >
< artifactId >javet-node-linux-arm64</ artifactId >
< version >4.1.1</ version >
</ dependency >
<!-- Node.js Mac OS (x86_64) -->
< dependency >
< groupId >com.caoccao.javet</ groupId >
< artifactId >javet-node-macos-x86_64</ artifactId >
< version >4.1.1</ version >
</ dependency >
<!-- Node.js Mac OS (arm64) -->
< dependency >
< groupId >com.caoccao.javet</ groupId >
< artifactId >javet-node-macos-arm64</ artifactId >
< version >4.1.1</ version >
</ dependency >
<!-- Node.js Windows (x86_64) -->
< dependency >
< groupId >com.caoccao.javet</ groupId >
< artifactId >javet-node-windows-x86_64</ artifactId >
< version >4.1.1</ version >
</ dependency >
<!-- V8 Linux (x86_64) -->
< dependency >
< groupId >com.caoccao.javet</ groupId >
< artifactId >javet-v8-linux-x86_64</ artifactId >
< version >4.1.1</ version >
</ dependency >
<!-- V8 Linux (arm64) -->
< dependency >
< groupId >com.caoccao.javet</ groupId >
< artifactId >javet-v8-linux-arm64</ artifactId >
< version >4.1.1</ version >
</ dependency >
<!-- V8 Mac OS (x86_64) -->
< dependency >
< groupId >com.caoccao.javet</ groupId >
< artifactId >javet-v8-macos-x86_64</ artifactId >
< version >4.1.1</ version >
</ dependency >
<!-- V8 Mac OS (arm64) -->
< dependency >
< groupId >com.caoccao.javet</ groupId >
< artifactId >javet-v8-macos-arm64</ artifactId >
< version >4.1.1</ version >
</ dependency >
<!-- V8 Windows (x86_64) -->
< dependency >
< groupId >com.caoccao.javet</ groupId >
< artifactId >javet-v8-windows-x86_64</ artifactId >
< version >4.1.1</ version >
</ dependency >implementation( " com.caoccao.javet:javet:4.1.1 " ) // Core (Must-have)
implementation( " com.caoccao.javet:javet-node-linux-arm64:4.1.1 " )
implementation( " com.caoccao.javet:javet-node-linux-x86_64:4.1.1 " )
implementation( " com.caoccao.javet:javet-node-macos-arm64:4.1.1 " )
implementation( " com.caoccao.javet:javet-node-macos-x86_64:4.1.1 " )
implementation( " com.caoccao.javet:javet-node-windows-x86_64:4.1.1 " )
implementation( " com.caoccao.javet:javet-v8-linux-arm64:4.1.1 " )
implementation( " com.caoccao.javet:javet-v8-linux-x86_64:4.1.1 " )
implementation( " com.caoccao.javet:javet-v8-macos-arm64:4.1.1 " )
implementation( " com.caoccao.javet:javet-v8-macos-x86_64:4.1.1 " )
implementation( " com.caoccao.javet:javet-v8-windows-x86_64:4.1.1 " )implementation ' com.caoccao.javet:javet:4.1.1 ' // Core (Must-have)
implementation ' com.caoccao.javet:javet-node-linux-arm64:4.1.1 '
implementation ' com.caoccao.javet:javet-node-linux-x86_64:4.1.1 '
implementation ' com.caoccao.javet:javet-node-macos-arm64:4.1.1 '
implementation ' com.caoccao.javet:javet-node-macos-x86_64:4.1.1 '
implementation ' com.caoccao.javet:javet-node-windows-x86_64:4.1.1 '
implementation ' com.caoccao.javet:javet-v8-linux-arm64:4.1.1 '
implementation ' com.caoccao.javet:javet-v8-linux-x86_64:4.1.1 '
implementation ' com.caoccao.javet:javet-v8-macos-arm64:4.1.1 '
implementation ' com.caoccao.javet:javet-v8-macos-x86_64:4.1.1 '
implementation ' com.caoccao.javet:javet-v8-windows-x86_64:4.1.1 'Untuk detail lebih lanjut, silakan kunjungi halaman instalasi.
// 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 | Sheetjs | momen.app
Lisensi Apache, Versi 2.0