node.js – How to install NodeJs in Oracle Apex 20.1

Oracle APEX 20.1 does not natively support server-side JavaScript execution. However, there are a few options that you can explore to use server-side JavaScript with APEX:

  • Use PL/SQL instead: APEX supports server-side execution of PL/SQL code, so you could consider rewriting your server-side JavaScript code as PL/SQL code. This would require some additional development effort, but it would allow you to keep your server-side code within the APEX environment.

  • Use the Oracle Nashorn JavaScript engine: Nashorn is a JavaScript engine that is included with Java 8 and later. You can configure APEX to use the Nashorn engine for server-side JavaScript execution. However, this approach requires additional setup and configuration, and Nashorn has been deprecated since Java 11.

  • Install Node.js on your server: You could install Node.js on your server and use it to execute your server-side JavaScript code. However, this approach requires additional setup and configuration, and it may not be feasible in some environments.

In general, I would recommend considering the PL/SQL option first, as it is the most straightforward and requires the least amount of additional setup and configuration. However, if you have a specific need to use server-side JavaScript, then the Nashorn or Node.js options may be worth exploring further.

Read more here: Source link