The Packaging of applications built using Client Builder to NAR (NMS ARchive) is done using the Package Wizard. After NAR is created, NAR is installed in the Web NMS Client (using Deployment Wizard in Web NMS). Before the packaging the chassis application to NAR, you must compile the project Follow the steps given below to compile the project.
Compiling the Project
Regenerate the Project using the menu command Project > Regenerate Project.
Compile the Project using the menu command Project > Compile Project. You will get the message "Compilation succeeded for EMS_Configuration" in status bar.
Packaging the Classes using Package Wizard
Invoke the Package Wizard for creating the Device Specific NAR using the menu command Tools > Package for Web NMS > Device Specific. For detailed explanation on using the Package Wizard follow the topic Integration with Web NMS.
Select the value "com.adventnet.nms.tutorials.ems.SwitchConfiguration" from the Classes list and click "Next" button to proceed to next screen.
Choose the required destination directory where the NAR has to be created using the browse button. Click "Next" button to proceed to next screen.
Provide the corresponding device type that of the device host such as "Windows NT", "Linux", or "Solaris" in the "Device Type" field. Click "Next" button to proceed to next screen.
Ensure the required device information are listed in the "DESTINATION DIRECTORY" and click "Next" button to proceed to final screen of the Package Wizard.
Note: For security features, include four classes from the package com.adventnet.security.authorization located in <Web NMS Home>/classes directory into in <Client Builder Home>/projects/EMS_Configuration/classes directory. The required classes are AuthorizationException.class, AuthorizationEngine.class, AuthorizationEngineImpl.class, and AuthorizationEngineImpl_Stub.class.
6. Click Finish button to close the Package Wizard to get the confirmation dialog with the message
SwitchConfiguration.nar created successfully at <specified location>.
Import the NAR into the EMS Project, using the Client Application Import Wizard.
Deploy the NAR in Web NMS Client using the Deployment Wizard in Web NMS with the required menu name and menu item
Note: The above project is also available in <Web NMS Home>/StudioTools/ClientBuilder/projects
directory as EMS_Configuration that can be loaded for your reference.