Visual Setup for Stendhal in Eclipse: Difference between revisions

From Arianne
Jump to navigation Jump to search
Content deleted Content added
imported>Hendrik Brummermann
imported>Hendrik Brummermann
Redirected page to Stendhal on Eclipse
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
#REDIRECT[[Stendhal on Eclipse]]
{{Navigation for Stendhal Top|Building & Hosting}}

{{TODO|Check if the map editor instructions at the bottom are still valid}}

__TOC__

== Get Eclipse ==

* Download Eclipse from http://eclipse.org/downloads/
** Pick Eclipse for Java Developers


== Creating the Project from CVS ==

First of all, from the view Package Explorer in Eclipse...

[[Image:Eclipse 01.png]]

[[Image:Eclipse 02.png]]

[[Image:Eclipse 03.png]]

<div style="border: 2px solid red">
Note: To use an developer account with write access, you need to select extssh instead of pserver and enter your Sourceforge username.
</div>

[[Image:Eclipse 04.png]]

[[Image:Eclipse 05.png]]

[[Image:Eclipse 06.png]]

[[Image:Eclipse 07.png]]

[[Image:Eclipse 08.png]]

[[Image:Eclipse 09.png]]

At this point, you will be downloading files from CVS.

== Configuring the project ==

Once code has been downloaded, you must create your classpath. Right click on project directory and select Properties.

[[Image:Eclipse 10.png]]


This step sets up the proper text encoding.

[[Image:Eclipse 11.png]]


Then click on Java Build Path. Remove any directories that show up in the Source tab.

[[Image:Eclipse 12.png]]


Then click Add Folder.

[[Image:Eclipse 13.png]]


Select src and tests directories and click OK.

[[Image:Eclipse 14.png]]


Next click Add JARs button.

[[Image:Eclipse 15.png]]


Click open the directories and select all the .jar*files within the libs directory. ''Do not select non .jar-files'''.
Click OK.

[[Image:Eclipse 16.png]]



At this point, you have finished setting up your classpath, so click OK.

[[Image:Eclipse 17.png]]

== Starting the server ==

[[Image:Eclipse 18.png]]

Search for StendhalServer.


Then click Run =&gt;
Run.

[[Image:Eclipse 21.png]]

At this point you have to enter the appropriate data to attach to your running database. Your responses are shown below in green.

'''Note: In most cases you just want to hit enter twice.


To start the client, search for games.stendhal.client.update.Starter.

== Map Editor ==

Just download the map editor tiled from http://mapeditor.org

Latest revision as of 22:07, 22 June 2015