126.96.36.199 General Packaging
Step by Step Procedure
Step 1 : Main Class Information
Classes List - All the classes in the specified project are listed.
Select the class for which the NAR file has to be created. The build type of the selected class must be any one of the three types :
Class selected - The name of the selected class is displayed here.
Class Type Label - Build type of the selected class is displayed here.
Click the 'Next' Button.
Step 2 : General Information
Destination Directory - This is the directory where the < CLASSNAME.nar > will be created. Enter the desired directory where the NAR file has to be created using the ' Browse ' Button.
Class - The class name for which NAR file has to be created. i.e. the class selected from ' Classes List ' in the previous screen.
Nms Panel Key -
If the build type of the Application is NMS Panel or if the .java file extends com.adventnet.nms.startclient.AbstractNmsPanel, then enter the key of the class.
The Key value should be the same as the value returned by the key( ) method.
Please take extra care while giving the key because this is how AdventNet Web NMS will refer to the class.
The value is case sensitive.
By default the key() method returns the 'SCREEN NAME ' as the key.
Click the 'Next ' Button.
Step 3 : Resources To Install
A Table with two columns Source Directory and Destination Directory displays the resources required for the Application.
Source Directory - The column under the heading Source Directory in the Table will list the resources with path relative to < Web NMS Home> .
Destination Directory - The column under the heading Destination Directory lists the resources with the path in which it will be packaged.
Add - If any resource other than those listed are needed for the Application then it can be added as follows:
Choose the required resource using the 'Browse' Button .
Click the 'Add' Button to add the resource to the Table.
Modify - The resource listed in the table can be modified as follows :
Select the resource from the table.
If the resource listed under SOURCE DIRECTORY column needs to be modified then resource displayed under ' Source ' Label has to be changed.
If the resource listed under DESTINATION DIRECTORY column needs to be modified then the resource displayed under ' Destination ' label has to be changed.
Click the 'Modify' Button. The modified resource will be reflected in the table.
Delete - If any unwanted resource has been added to the table then select the unwanted resource in the table and click 'Delete ' Button.
After adding or modifying or deleting the resources click the 'Next' Button.
Step 4 : List Of Parameters
A Table with two columns under the heading 'Parameter' and 'Value ' displays the project parameters.
Parameter - This column lists the parameters required for the Application.
Value - This column lists the values corresponding to parameters.
Add - Parameter can be added as follows
Enter the required parameter and value under the Parameter and Value labels respectively.
Click ' Add ' Button, the parameter will get added to the Table.
Modify - The parameter listed in the table can be modified as follows :
Select the parameter from the table.
If the parameter listed under Parameter column needs to be modified then parameter displayed under the Label 'Parameter' has to be changed.
If the parameter listed under ' Value' Column needs to be modified then the parameter displayed under 'Value' Label has to be changed.
Click ' Modify ' Button. The modified resource will be reflected in the Table.
Delete - To remove any parameter, select the parameter to be deleted and then click the 'Delete' Button.
After adding or modifying or deleting the parameters click the 'Finish' Button.
A dialog that the <ClassName.nar > has been created at the < Destination Directory> will be prompted.
Click the OK button to exit from the wizard.