You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to call a javascript codebase from Java. It is in node.js package format and has some dependencies. I can use well known tools to bundle and transpile to one module. I would like to pre-compile it to jvm bytecodes and call it from jvm.
The compiler seem to expect some format of global functions definitions if I want to export interface for jvm to use, however none of bundler/transpiler tools support this format.
This discussion was converted from issue #1689 on October 11, 2024 05:41.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to call a javascript codebase from Java. It is in node.js package format and has some dependencies. I can use well known tools to bundle and transpile to one module. I would like to pre-compile it to jvm bytecodes and call it from jvm.
I went through the document of JavaScript compiler https://rhino.github.io/tools/javascript_compiler/
The compiler seem to expect some format of global functions definitions if I want to export interface for jvm to use, however none of bundler/transpiler tools support this format.
Beta Was this translation helpful? Give feedback.
All reactions