Dialogic Voice Cards - Updating the JRE bundled with NaturalAccess™ Software for Windows
Information
Dialogic NaturalAccess Software is use to create development and runtime environment for creating voice, fxs, conferencing and video application using the Dialogic CG Series Media Boards.
Introduction
This article describes how to replace the Java Runtime Environment (JRE) which is bundled with Dialogic® NaturalAccess™ Software for Windows.
Background
NaturalAccess Software for Linux includes the NaturalAccess License Manager ("nmslm") which manages software licenses used by NaturalAccess. It is installed as Windows service named "NMS Communications License Manager". This service in turn uses a bundled Java Runtime Environment (JRE), which is not the latest version. The bundled version may be found in c:\nms\nmslm\j2re1.4.2_04. A user may prefer to use updated Java runtimes, particularly because of security issues with older versions.
Solution
Download and install the latest 32-bit JRE for Windows from Oracle (Note: use the 32-bit JRE even for 64-bit NaturalAccess).
Edit the file "c:\nms\nmslm\javaservice\conf\wrapper.conf". Change this line:
wrapper.java.command=../../j2re1.4.2_04/bin/java
to
wrapper.java.command=C:/Program Files (x86)/Java/jre1.8.0_45/bin/java
Modify the path above according to the updated JRE version you installed.
Restart the "NMS Communications License Manager" service from the "Services" control panel
If your goal is to make sure the out-of-date JRE is not running during normal system operation, and you use the default Windows service to run the NaturalAccess License Manager, skip to Step 8. Adding or checking licenses with nmslm_tool or the graphical "NMS Communications License Manager" will still use the bundled Java runtime, but the NaturalAccess License Manager will now use the new JRE, and your application will be granted licenses normally. If you also need to remove the bundled JRE completely, continue with Step 5.
Edit "c:\nms\nmslm\nmslm_tool.bat" and "c:\nms\nmslm\nmslm_server.bat" and in each file, change
.\j2re1.4.2_04\bin\java to "C:\Program Files (x86)\Java\jre1.8.0_45\bin\java", making sure to INCLUDE the quotation marks. Modify the new path according to the updated JRE version you installed.
In the Start Menu, find the "NMSLM Management Tool" icon in the "NMS Communications License Manager" folder, right-click it and choose "Properties". Under the Shortcut tab, modify "Target" and change
c:\nms\nmslm\j2re1.4.2_04\bin\javaw.exeto "C:\Program Files (x86)\Java\jre1.8.0_45\bin\javaw.exe", making sure to INCLUDE the quotation marks. Modify the new path according to the updated JRE version you installed.
Delete or rename the folder "c:\nms\nmslm\j2re1.4.2_04"
If you have licenses installed, test that everything is working well by running "nmslm_tool -c -l" from the "c:\nms\nmslm" directory
NOTE
If no products using the NaturalAccess License Manager are utilizied, i.e., if you do not deploy licenses on new systems using nmslm_tool or the graphical "NMSLM Management Tool", and the file c:\nms\nmslm\licenses.lcs does not exist, then instead of these steps, you can simply disable the Windows service "NMS Communications License Manager", and the bundled JRE will not be used.
Even for 64-bit versions of NaturalAccess, the 32-bit JRE is used by the NaturalAccess License Manager, and it is recommended to use 32-bit JRE when updating also. If you cannot use the updated 32-bit JRE, or want to avoid maintaining two JRE installations, then you may try using the 64-bit JRE instead. The paths mentioned in the solution above should change to "Program Files" instead of "Program Files (x86)". In this configuration, you will see the following errors in c:\nms\nmslm\javaservice\bin\wrapper.log:
INFO | jvm 1 | 2015/05/05 13:42:14 | WARNING - Unable to load the Wrapper's native library 'wrapper.dll'.
INFO | jvm 1 | 2015/05/05 13:42:14 | The file is located on the path at the following location but
INFO | jvm 1 | 2015/05/05 13:42:14 | could not be loaded:
INFO | jvm 1 | 2015/05/05 13:42:14 | C:\NMS\nmslm\javaservice\bin\..\lib\wrapper.dll
INFO | jvm 1 | 2015/05/05 13:42:14 | Please verify that the file is readable by the current user
INFO | jvm 1 | 2015/05/05 13:42:14 | and that the file has not been corrupted in any way.
INFO | jvm 1 | 2015/05/05 13:42:14 | System signals will not be handled correctly.
These errors do not appear to affect the operation of the NaturalAccess License Manager, and licenses appear to be granted normally despite the errors.