IDE Setup

An Integrated Development Environment (IDE) assists the developer with a built-in compiler that provides in-line code assistance. Other built-in features link to documentation contained within the PolySync API header files. Most IDEs can be configured to read the header files. PolySync's C developers commonly prefer [NetBeans 8.1](https://netbeans.org/). Download and install the IDE. The next step is to create a new project, or start a project with existing source code. Each project is an application that can have any number of header files─or include directories─attached. To configure the IDE for PolySync application development: * Start a new NetBeans project, or create a project from existing source files * Right-click on the project name from the 'Projects' tab in the left-panel * Select `Properties` * Go to the `C Compiler` tab * Select `Include Directories` * Add the two absolute paths * PSYNC_HOME/include * PSYNC_HOME/include/deps/dcps/C/SAC `PSYNC_HOME` should be converted to an absolute path. The default path is `/usr/local/polysync`. ![NetBeans Step 01](https://help.polysync.io/releases/2.0.8//wp-content/uploads/2016/09/netbeans-01.png) ![NetBeans Step 02](https://help.polysync.io/releases/2.0.8//wp-content/uploads/2016/09/netbeans-02.png) ![NetBeans Step 03](https://help.polysync.io/releases/2.0.8//wp-content/uploads/2016/09/netbeans-03.png) ![NetBeans Step 04](https://help.polysync.io/releases/2.0.8//wp-content/uploads/2016/09/netbeans-04.png) ### IDE Node Execution The following variables need to be defined in the IDE build environment, for PolySync nodes to properly execute within the IDE's environment. From the top bar of the Netbeans toolbar, select Run -> Set Project Configuration -> Customize ![Run tab of the Project Configuration's Customize window](https://help.polysync.io/releases/2.0.8//wp-content/uploads/2016/09/netbeans-run-customize-run-tab.png) Select the "Run" tab. You will see a row named "Environment". Modify this and add the following environment variables: - PSYNC_HOME - Default: `/usr/local/polysync` - OSPL_HOME - Default: `/usr/local/polysync/utils/x86_64.linux` - OSPL_URI - Default: `file:///usr/local/polysync/utils/x86_64.linux/etc/config/ospl.xml` - LD_LIBRARY_PATH - Default: `/usr/local/polysync/lib` ![Environment variables set](https://help.polysync.io/releases/2.0.8//wp-content/uploads/2016/09/netbeans-run-customize-run-environment-vars-complete.png)