Uses 3353K of libraries. Click here for Pure Java version (2133L/11K).
!7 lib 1400457 // nashorn 15.2 lib 1400458 lib 1400462 lib 1400463 lib 1400464 // asm import javax.script.*; cprint { start-thread { fixContextClassLoader(); new ScriptEngineManager factory; ScriptEngine engine = assertNotNull("Nashorn engine", factory.getEngineByName("nashorn")); print(engine.eval("'Hello' + ' World!'")); } }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030700 |
Snippet name: | Test Nashorn (JavaScript in Java) [OK] |
Eternal ID of this version: | #1030700/6 |
Text MD5: | d9c9d1470707176f9741b27fad1b7f08 |
Transpilation MD5: | 24052409d42f7679e1a02515b60cb65c |
Author: | stefan |
Category: | javax / javascript |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-03-09 16:34:17 |
Source code size: | 365 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 235 / 342 |
Version history: | 5 change(s) |
Referenced in: | [show references] |