Mythic Archon
- Joined
- Jul 2, 2013
- Messages
- 723
- Reaction score
- 70
So I know by upgrading from java 7 to java 8, Nashorn no longer imports the whole java package. However, we could work around it with:
load("nashorn:mozilla_compat.js");.
However, even with this work around inside the AbstractScriptManager, I am still getting exceptions being thrown stating:
javax.script.ScriptException: ReferenceError: "importPackage" is not defined in <eval> at line number 1
I even tried solaxia where they have the same method of working, but seemingly doesn't work. Any ideas? Thanks!
load("nashorn:mozilla_compat.js");.
However, even with this work around inside the AbstractScriptManager, I am still getting exceptions being thrown stating:
javax.script.ScriptException: ReferenceError: "importPackage" is not defined in <eval> at line number 1
I even tried solaxia where they have the same method of working, but seemingly doesn't work. Any ideas? Thanks!