IBM Support

Automation scripts updates required with the JavaScript engine in JDK 1.8

Technote (troubleshooting)


Problem(Abstract)

In JDK 1.8, the Mozilla Rhino JavaScript (JS) engine has been replaced with the Oracle Nashorn (V8) engine. If you change to JDK 1.8, your automation scripts that worked with the Mozilla Rhino JavaScript (JS) engine may not work as expected.

Cause

Oracle Nashorn has a slightly different flavor of JS than Mozilla Rhino and therefore some of your automation scripts that worked with the Mozilla Rhino JavaScript (JS) engine may not work as expected with the Oracle Nashorn engine without updating them.


For example, the importPackage command will not work correctly. You would need to use the JavaImporter function to complete the same action in Nashorn.


Resolving the problem

For more information about Mozilla Rhino and Oracle Nashorn that may impact your script code in JS, go to the StackOverflow forum and search for “Switching from Rhino to Nashorn”.

Document information

More support for: Maximo Asset Management

Software version: 7.6.0.6, 7.6.0.7, 7.6.0.8, 7.6.0.9

Operating system(s): Platform Independent

Software edition: All Editions

Reference #: 1992706

Modified date: 14 May 2018


Translate this page: