Stendhal on Eclipse: Difference between revisions

Content deleted Content added
imported>Kymara
numbers
imported>Kymara
numbers- cheated and used html
Line 1:
==First Steps==
<ol>
#<li> First of all open the view called Package Explorer.</li>
#<li> Create new 'Java Project'</li>
#<li> Get stendhal from CVS. (Connection type: pserver, User: anonymous, Password - leave blank, Host:arianne.cvs.sourceforge.net, Repository: /cvsroot/arianne)</li>
<pre>
file-> new -> project -> project-> from cvs
Line 30 ⟶ 31:
click finish
</pre>
#<li> Make sure that the marauroa.ini (server.ini, for Stendhal version 0.63 or above) is in your stendhal project folder - '''only needed if you will be running the server'''.</li>
#: Next,
#<li> Right click on your project folder and select "Properties" in the context menu.</li>
# Make sure that the marauroa.ini (server.ini, for Stendhal version 0.63 or above) is in your stendhal project folder - '''only needed if you will be running the server'''.
#<li> Then select "Java Build Path" on the left side of the dialog box.</li>
# Right click on your project folder and select "Properties" in the context menu.
#<li> Now remove all existing folders from source path and add the two source folders 'src' and 'tests' by clicking on the "Add Folder..." button</li>
# Then select "Java Build Path" on the left side of the dialog box.
# Now remove all existing folders from source path and add the two source folders 'src' and 'tests' by clicking on the "Add Folder..." button
<pre>
source folder #1:
Line 50:
default output folder: stendhal/bin
</pre>
#<li> On the "Libraries" tab: click on the "Add JARs" button and select all the files in stendhal/lib </li>
#: Finally,
</ol>
# On the "Libraries" tab: click on the "Add JARs" button and select all the files in stendhal/lib
 
Eclipse should be able to compile the source code now. There should be a little yellow sign (signalling warning messages) before your project folder but not red X (error messages). The package explorer should now display the "src" folder below the root folder with a different icon, the icon is like a small grid.