In today time eclipse IDE is a great software for software development. As eclipse is coming in support for many languages so it can be used for developing software in those languages, because eclipse makes code development very easy and provide helps during code development.
Here we are going to discuss how to configure eclipse erlang plug-in, I am using eclipse juno for his discussion. If you want to download then please download the same from site :
http://www.eclipse.org/downloads/packages/release/juno/sr2
Erlide Plugin
Erlide is providing the eclipse plugin for erlang. Copy given erlid url : http://erlide.org/update/
Configure eclipse for erlide
Follow below mentioned steps for installation:
Help->install new software
One window will populate - add site address : http://erlide.org/update/
Click on “Select All” button and proceed with Next button.
It will ask for some agreement, click agree and then finally your eclipse is configured to use erlang plug in.
Now restart your eclipse.
Now configure plugin
Go to menu windows-> preferences
Now expand erlang tree and configure installed run times like given below
Congratulations you are almost done with it now only testing part remains.
Creating a Hello World erlang program using eclipse:
Click File-> new ->erlang project
It will ask for some name give some name like testProject.
Suppose you gave project name testProject, then a folder in eclipse will be made which will contain many folder like src, ebin, include etc.
Now src and ebin are the ones which are of our usage.
In src folder we create our module for hello world.
Create module using manu File->New ->module
Below mentioned screen will appear
Fill detail as mentioned in the above figure.
Now click apply and then finish.
11. Finally you have to create a module. Now you need to write code in this module for printing Hello World.
Write below code
%% @author USER
%% @doc @todo Add description to hello.
-module(hello).
%% ====================================================================
%% API functions
%% ====================================================================
-export([say/0]).
say()->
"Hello World".
%% ====================================================================
%% Internal functions
%% ====================================================================
Now compile erlang program using c(hello) and after that execute it using hello:say() command.
Thanks for reading this discussion related to erlang plugin. See you for more discussion related to erlang.