Uses 3353K of libraries. Click here for Pure Java version (2133L/11K).
1 | !7 |
2 | |
3 | lib 1400457 // nashorn 15.2 |
4 | lib 1400458 lib 1400462 lib 1400463 lib 1400464 // asm |
5 | |
6 | import javax.script.*; |
7 | |
8 | cprint { |
9 | start-thread { |
10 | fixContextClassLoader(); |
11 | new ScriptEngineManager factory; |
12 | ScriptEngine engine = assertNotNull("Nashorn engine", factory.getEngineByName("nashorn")); |
13 | print(engine.eval("'Hello' + ' World!'")); |
14 | } |
15 | } |
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: | 236 / 344 |
Version history: | 5 change(s) |
Referenced in: | [show references] |