Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Nashorn Import Package "Is Supported"

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!
 
Back
Top