Eclipse Setup - nickmcdowall/Erlang-Examples GitHub Wiki
Setting Up Erlang
Installing
Download and Install the latest version of Erlang onto your machine:
Create an environment variable called ERLANG_HOME and point it to your installation directory.
Add %ERLANG_HOME%\bin to your PATH variable.
Eclipse Setup
Download and install the Erlide plugin for Eclipse - this can be found by searching in the Marketplace, or you could go to the Help menu, choose Install New Software... and add the following update site: http://erlide.org/update
Go to Windows/Preferences/Erlang/Installed runtimes and add your Erlang installation directory.
Create a new Run configuration for Erlide: Run/Run configurations... with these properties
On the Erlang tab
Make sure that your Erlang project(s) are checked. Only files in these projects will be picked up by the plugin.
On the Runtime tab
Choose the installed runtime e.g. erl5.9 from the drop-down list
Specify the module name as 'erlide' and choose the long-name radio option
Running your programs
Create an Erlang module file and export a function that will be called.
Make sure that your Erlang Runtime is running as described above then simply navigate to the Console view that is running the Erlide runtime and start invoking your exported functions.
Remember to include the module name when invoking the function e.g. moduleName:functionName(Argument).
Tip: hitting F9 will recompile your file to pick up any changes you make.