Visual Setup for Stendhal in Eclipse: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Hendrik Brummermann |
imported>Hendrik Brummermann Redirected page to Stendhal on Eclipse |
||
| (59 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
#REDIRECT[[Stendhal on Eclipse]] |
|||
{{Navigation for Stendhal Top|Building & Hosting}} |
|||
{{Navigation for Stendhal Builders and Hosters}} |
|||
__TOC__ |
|||
== 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. |
|||
== Configurating 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 files within the libs directory and click |
|||
OK. |
|||
[[Image:Eclipse 16.png]] |
|||
At this point, you have finished setting up your classpath, so click OK. |
|||
[[Image:Eclipse 17.png]] |
|||
== GenerateINI == |
|||
'''Note: The following images show the configuration of a MySQL connection. But in most cases you don't need a database server and can use H2 instead. Just hit enter two times. |
|||
This tutorial does NOT cover installation of MySQL database. It is assumed that if you are going to install server from within Eclipse, you will install MySQL and set up the required database. If you are going to run the server from within Eclipse, you will need to create the server.ini file. These are the steps needed for that: |
|||
[[Image:Eclipse 18.png]] |
|||
[[Image:Eclipse 19.png]] |
|||
Once you have located GenerateINI.java, double click it to open in code window. |
|||
[[Image:Eclipse 20.png]] |
|||
Then click Run => |
|||
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. |
|||
[[Image:Eclipse 22.png]] |
|||
Once you hit enter on the password, it will ask you to specify RSA key. Take default (press enter). |
|||
Give it a couple minutes, and your server.ini is done. |
|||
[[Image:Eclipse 23.png]] |
|||
== Map Editor == |
|||
Now we will set up map editor to run from within Eclipse. Click the black arrow beside green bug and follow through. |
|||
http://img87.imageshack.us/img87/8991/vissetup23bv0.png |
|||
http://img87.imageshack.us/img87/1216/vissetup24mv2.png |
|||
http://img87.imageshack.us/img87/5185/vissetup25cc7.png |
|||
http://img87.imageshack.us/img87/9721/vissetup26nx8.png |
|||
http://img87.imageshack.us/img87/4593/vissetup27ix0.png |
|||
http://img87.imageshack.us/img87/3089/vissetup28cj5.png |
|||
http://img87.imageshack.us/img87/3632/vissetup29wc8.png |
|||
http://img87.imageshack.us/img87/7530/vissetup30ok1.png |
|||
At this point, map editor (tiled) should start. |
|||