Saturday, September 19, 2015

How To Set Eclipse Build Path For Niagara-AX



The Eclipse Niagara Plugin handles editing the Eclipse project build path to include module JAR file dependencies when a new module is created through the New AX Module wizard. It may not always be possible to include a module as a dependency through the wizard.
The Eclipse project Referenced Libraries build path can be set directly from within Eclipse to reference the necessary module JAR files which enable syntax checking in the Eclipse IDE.
To add a module JAR file dependency, right click on the Java project in the Eclipse IDE. In the context menu that displays, select the Build Path option. From this option, select Configure Build Path....



The Properties dialog for the Java project will display. Within this dialog, ensure that the Java Build Path tree menu item is selected and displaying in the main dialog view. Select the Libraries tab from the display tab options. 



From the button panel of the Libraries tab, click the Add Variable... button. The New Classpath Entry dialog will display.  




In the dialog list select the NIAGARA_HOME variable entry. This is the environment variable which points to the Niagara installation on your development platform.
Click the Extend... button. The Variable Extension dialog will display.



From the dialog list, select the modules directory. The module tree will expand to display all module JAR files in the directory.
Select the module you wish to include on the build path by clicking the module. Once selected, click the OK button of the Dialog. The dialog will close.
To save your changes to the Java project build path, click the OK button of the Properties dialog. The build path of the Java project will be updated with the reference to the module JAR file.