Visual Setup for Stendhal in Eclipse: Difference between revisions
imported>Tigertoes No edit summary |
imported>Tigertoes No edit summary |
(No difference)
| |
Revision as of 14:46, 8 April 2008
<HTML><HEAD><TITLE>Visual Setup for Stendhal in Eclipse IDE - Map Editor (tiled) and server.ini Setup Included</TITLE> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> </HEAD> <BODY bgColor=#ccccff>
This setup is done on Windows XP Professional - no guarantees for any other system. Also, it is assumed this will be the first attempt at setting up Stendhal in your Eclipse environment.
First of all, from the view Package Explorer in Eclipse...
<IMG src="http://img87.imageshack.us/img87/29/vissetup01fr3.png" border="0">
<IMG src="http://img87.imageshack.us/img87/5299/vissetup02cd7.png" border="0">
<IMG src="http://img87.imageshack.us/img87/3144/vissetup03qn0.png" border="0">
<IMG src="http://img87.imageshack.us/img87/6818/vissetup04ew8.png" border="0">
<IMG src="http://img87.imageshack.us/img87/4233/vissetup05ac9.png" border="0">
<IMG src="http://img87.imageshack.us/img87/9099/vissetup06pa6.png" border="0">
<IMG src="http://img87.imageshack.us/img87/120/vissetup07yg3.png" border="0">
<IMG src="http://img87.imageshack.us/img87/2362/vissetup08pg0.png" border="0">
<img src="http://img153.imageshack.us/img153/2316/vissetup08acp9.png">
At this point, you will be downloading files from CVS. Once code has been downloaded, you must create your classpath. Right click on project directory and select Properties.
<IMG src="http://img87.imageshack.us/img87/1979/vissetup09bd5.png" border="0">
Remove any directories that show up in the Source tab.
<IMG src="http://img87.imageshack.us/img87/8536/vissetup10mm4.png" border="0">
Then click Add Folder.
<IMG src="http://img87.imageshack.us/img87/1783/vissetup11tj0.png" border="0">
Select src and tests directories and click OK.
<IMG src="http://img87.imageshack.us/img87/5358/vissetup12jd2.png" border="0">
Next click Add JARs button.
<IMG src="http://img87.imageshack.us/img87/5068/vissetup13xi3.png" border="0">
Click open the directories and select all the files within the libs directory and click OK.
<IMG src="http://img87.imageshack.us/img87/7098/vissetup14aq5.png" border="0">
At this point, you have finished setting up your classpath, so click OK.
<IMG src="http://img87.imageshack.us/img87/8162/vissetup15io9.png" border="0">
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:
<IMG src="http://img87.imageshack.us/img87/654/vissetup16aj7.png" border="0">
<IMG src="http://img87.imageshack.us/img87/5623/vissetup17fh6.png" border="0">
Once you have located GenerateINI.java, double click it to open in code window.
<IMG src="http://img87.imageshack.us/img87/9346/vissetup18pj2.png" border="0">
Then click Run => Run.
<IMG src="http://img87.imageshack.us/img87/3479/vissetup19aj6.png" border="0">
Depending on whether there are errors, the following might display. If you know they do not affect what you are running, ie: if errors are in tests directory, click Proceed. If the errors do affect you, then you will have to fix them. This tutorial will NOT try to cover that.
<IMG src="http://img87.imageshack.us/img87/8951/vissetup20yu6.png" border="0">
At this point you have to enter the appropriate data to attach to your running database. Your responses are shown below in green.
<IMG src="http://img87.imageshack.us/img87/8042/vissetup21ql4.png" border="0">
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.
<IMG src="http://img87.imageshack.us/img87/2260/vissetup22vc9.png" border="0">
Now we will set up map editor to run from within Eclipse. Click the black arrow beside green bug and follow through.
<IMG src="http://img87.imageshack.us/img87/8991/vissetup23bv0.png" border="0">
<IMG src="http://img87.imageshack.us/img87/1216/vissetup24mv2.png" border="0">
<IMG src="http://img87.imageshack.us/img87/5185/vissetup25cc7.png" border="0">
<IMG src="http://img87.imageshack.us/img87/9721/vissetup26nx8.png" border="0">
<IMG src="http://img87.imageshack.us/img87/4593/vissetup27ix0.png" border="0">
<IMG src="http://img87.imageshack.us/img87/3089/vissetup28cj5.png" border="0">
<IMG src="http://img87.imageshack.us/img87/3632/vissetup29wc8.png" border="0">
<IMG src="http://img87.imageshack.us/img87/7530/vissetup30ok1.png" border="0">
At this point, map editor (tiled) should start.
</BODY></HTML>