<html><head><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Tutorials</title><link href="../css/eclipse.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL-NS Stylesheets V1.74.0" name="generator"><link rel="home" href="index.html" title="Erlide, the Erlang IDE"><link rel="up" href="gettingStarted.html" title="Chapter 1. Getting started"><link rel="prev" href="instalation_guide.html" title="Installation guide"><link rel="next" href="features.html" title="Features"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table summary="Navigation header" width="100%"><tr><th align="center" colspan="3">Tutorials</th></tr><tr><td align="left" width="20%"><a accesskey="p" href="instalation_guide.html">Prev</a> </td><th align="center" width="60%">Chapter 1. Getting started</th><td align="right" width="20%"> <a accesskey="n" href="features.html">Next</a></td></tr></table><hr></div><div class="sect1" lang="en-US"><div class="titlepage"><div><div><h2 class="title" id="tutorials">Tutorials</h2></div></div></div><div class="sect2" lang="en-US"><div class="titlepage"><div><div><h3 class="title" id="quickstart">Quick start</h3></div><div><div class="author"><h3 class="author"><span class="firstname">Eli</span> <span class="surname">Liang</span></h3></div></div></div></div><div class="epigraph"><p>Thanks to Eli Liang for writing this guide.</p></div><p>The steps outlined here use the Eclipse 3.4 menu names, for 3.3 the procedure
is highly similar. <div class="orderedlist"><ol type="1"><li><p>Start eclipse</p></li><li><p>If it prompts you to choose workspace, select the folder you want
to work in. For this tutorial you might want to use a fresh
one.</p></li><li><p>On the menu bar, Choose <span class="guimenu">Help</span> → <span class="guimenuitem">Software Updates...</span>
</p></li><li><p>Select the <span class="guilabel">Installed Software</span> tab. If "Erlang IDE" appears under name, then go to
<a class="xref" href="tutorials.html#step17">17</a>. </p></li><li><p>Select the <span class="guilabel">Available Software</span> tab.</p></li><li><p>Click the <span class="guibutton">Add Site...</span> button on the right.
</p></li><li><p>In the <span class="guilabel">Location</span> field, enter
<strong class="userinput"><code>http://erlide.sourceforge.net/update</code></strong>
</p></li><li><p>Click <span class="guibutton">OK</span>
</p></li><li><p>Check the box left of
<span class="guilabel">http://erlide.sourceforge.net/update</span></p></li><li><p>Check the box left of <span class="guilabel">Unstable builds</span></p></li><li><p>Click the <span class="guibutton">Install...</span> button on the right
</p></li><li><p>When the Install dialog pops, click on the
<span class="guibutton">Next</span> button </p></li><li><p>Accept the terms of the license agreement. </p></li><li><p>Click <span class="guibutton">Finish</span>.</p></li><li><p>Click <span class="guibutton">Yes</span> to restart.</p></li><li><p>Go to <a class="xref" href="tutorials.html#step20">20</a> below</p></li><li><p><a name="step17"></a>Select (click on) <span class="guilabel">Erlang IDE</span>
</p></li><li><p>Click on the <span class="guibutton">Update</span> button on the
right</p></li><li><p>Follow the directions to update and restart Eclipse.</p></li><li><p><a name="step20"></a>Click on the Workbench icon on the right side of the main eclipse
window</p></li><li><p>On menu bar, choose <span class="guimenu">Windows</span> → <span class="guisubmenu">Preferences</span> → <span class="guisubmenu">Erlang</span> → <span class="guimenuitem">Install runtimes</span></p></li><li><p>See if there is a runtime listed in the drop down field called
<span class="guilabel">Runtime used by Erlide itself (restart is
required)</span>. If there is something there, hit
<span class="guibutton">Cancel</span> and go on to <a class="xref" href="tutorials.html#step28">28</a>. </p></li><li><p>Click on the <span class="guibutton">Add...</span> button. </p></li><li><p>In the <span class="guilabel">Runtime name</span> field, enter
<strong class="userinput"><code>erl5.6.4</code></strong>. </p></li><li><p>In the <span class="guilabel">Location</span> field, browse to the very top
level folder of the Erlang tree. This should be a folder called
"erl5.6.4" or something like that. </p></li><li><p>Click <span class="guibutton">OK</span>. Then Click
<span class="guibutton">Apply</span> and <span class="guibutton">OK</span> in
the <span class="guilabel">Install runtimes</span> pane.</p></li><li><p>On menu bar, choose <span class="guimenu">File</span> → <span class="guimenuitem">Restart</span></p></li><li><p><a name="step28"></a>On menu bar, chose Windows -> Open Perspective -> Other... ->
Erlang. Click <span class="guibutton">OK</span>.</p></li><li><p>On menu bar, chose File -> New -> Project...</p></li><li><p>In wizard, chose Erlang -> Erlang Project and click Next</p></li><li><p>In Project name field, type
<strong class="userinput"><code>HelloWorldProject</code></strong></p></li><li><p>Click <span class="guibutton">Finish</span>
</p></li><li><p>On menu bar, choose Project and make sure that <span class="guimenuitem">Build
Automatically</span> option is checked</p></li><li><p>The left pane is the Erlang Navigator. Right-click the
HelloWorldProject branch. In the context menu that pops, select New
-> Other... -> Erlang -> Module and click Next (can also just select
"New Module" directly) </p></li><li><p>In the wizard, in the Module name field, type
<strong class="userinput"><code>hello</code></strong>
</p></li><li><p>Click Finish </p></li><li><p>On menu bar, choose Run -> Run Configurations... </p></li><li><p>Select the "Erlang application" </p></li><li><p>Click the New Launch configuration button (left side above the
field with "type filter text") </p></li><li><p>Select the "New configuration"</p></li><li><p>Select the "Main tab" in the right pane</p></li><li><p>Check the box left of the HelloWorldProject</p></li><li><p>Select the "Runtimes" tab in the right pane </p></li><li><p>In the filed titled <span class="guilabel">Node name</span>, enter
<strong class="userinput"><code>erlide</code></strong></p></li><li><p>Check the box to the left of "Start the Erlang node if not running
presently"</p></li><li><p>Click "Apply" and "Run"</p></li><li><p>In the center code pane (titled "hello.erl"), enter the following
code: hello/0 (within the brackets for the export, so it reads
"-export([hello/0]).")</p></li><li><p>On the next line after the export, enter the following code:
<pre class="screen">hello() -> io:format("Hello Wo
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
erlide_0.4.0.zip (702个子文件)
erlide_parse.beam 250KB
erlide_syntax.beam 79KB
erlide_dbg_ieval.beam 66KB
erlide_syntax_lib.beam 40KB
erlide_scan.beam 33KB
erlide_boxp.beam 31KB
erlide_pp.beam 29KB
erlide_indent.beam 27KB
erlide_dbg_iload.beam 25KB
erlide_scanner.beam 24KB
erlide_dbg_iserver.beam 22KB
erlide_noparse.beam 22KB
erlide_scanner2.beam 20KB
erlide_int.beam 20KB
erlide_otp_doc.beam 19KB
erlide_dbg_icmd.beam 16KB
erlide_recomment.beam 15KB
erlide_dbg_mon.beam 14KB
erlide_epp_dodger.beam 12KB
erlide_box2text.beam 12KB
erlide_pperl.beam 11KB
erlide_open.beam 11KB
erlide_dbg.beam 10KB
erlide_text.beam 10KB
string_io.beam 9KB
erlide_model.beam 9KB
erlide_comment_scan.beam 9KB
erlide_shell.beam 8KB
erlide_backend.beam 8KB
erlide_builder.beam 8KB
erlide_pprint.beam 7KB
erlide_otp_docs_x.beam 7KB
erlide_debug.beam 5KB
erlide_xml_simple.beam 5KB
erlide_util.beam 4KB
erlide_dbg_debugged.beam 3KB
erlide_import.beam 3KB
jrpc.beam 3KB
erlide_proclist.beam 3KB
erlide_yecc_msgs.beam 3KB
erlide_erlcerrors.beam 3KB
erlide_box.beam 3KB
erlide_comment.beam 2KB
erlide_pair_match.beam 2KB
erlide_code_db.beam 2KB
erlide_dbg_idb.beam 2KB
erlide_log.beam 2KB
erlide_syntax_tree.beam 2KB
int.beam 1008B
online.css 3KB
eclipse.css 3KB
foldingStructureProviders.exsd 5KB
erlang160.gif 23KB
erlang150.gif 20KB
erlang140.gif 17KB
erlang-notext160.gif 17KB
erlang130.gif 15KB
erlang-notext150.gif 15KB
erlang-notext140.gif 13KB
erlang120.gif 13KB
erlang120.gif 13KB
erlang120.gif 13KB
erlang-notext130.gif 11KB
powered096.gif 11KB
erlang110.gif 11KB
powered091.gif 10KB
erlang100.gif 9KB
powered086.gif 9KB
erlang-notext120.gif 8KB
erlang-notext110.gif 8KB
powered081.gif 8KB
erlang090.gif 7KB
powered076.gif 7KB
erlang-notext100.gif 7KB
powered071.gif 6KB
erlang080.gif 6KB
powered066.gif 6KB
erlang-notext080.gif 5KB
powered061.gif 5KB
erlang-notext090.gif 5KB
erlang070.gif 5KB
powered056.gif 4KB
powered051.gif 4KB
erlang060.gif 4KB
erlang-notext060.gif 3KB
erlang-notext060.gif 3KB
newint_wiz.gif 3KB
packrefact_wiz.gif 3KB
newenum_wiz.gif 3KB
methrefact_wiz.gif 3KB
fieldrefact_wiz.gif 3KB
typerefact_wiz.gif 3KB
newfield_wiz.gif 3KB
library_wiz.gif 3KB
java_workingset_wiz.gif 3KB
newmeth_wiz.gif 3KB
compunitrefact_wiz.gif 3KB
newclass_wiz.gif 3KB
coderefact_wiz.gif 3KB
newannotation_wiz.gif 3KB
共 702 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
antique2003
- 粉丝: 0
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页