This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
JNA (https://github.com/twall/jna) is very effective way for Java to encapsulate access to C or other native code. Similar approach could be used for encapsulating Java access to JavaScript via HTML/Java APIs.
Created attachment 155281 [details] Few lines of code that can wrap a JS object by a Java interface