Visual Setup for Stendhal in Eclipse: Difference between revisions

From Arianne
Jump to navigation Jump to search
Content deleted Content added
imported>Hendrik Brummermann
No edit summary
imported>Hendrik Brummermann
cleaned up HTML code, added headings
Line 3: Line 3:




== Creating the Project from CVS ==
<P align=center><FONT face="Arial, Helvetica, sans-serif">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.</FONT></P>
First of all, from the view Package Explorer in Eclipse...
<P align=center><FONT face="Arial, Helvetica, sans-serif">First of all, from the
http://img87.imageshack.us/img87/29/vissetup01fr3.png
view Package Explorer in Eclipse...</FONT></P>
<P align=center>http://img87.imageshack.us/img87/29/vissetup01fr3.png</P>
http://img87.imageshack.us/img87/5299/vissetup02cd7.png
<P align=center>http://img87.imageshack.us/img87/5299/vissetup02cd7.png</P>
http://img87.imageshack.us/img87/3144/vissetup03qn0.png
<P align=center>http://img87.imageshack.us/img87/3144/vissetup03qn0.png</P>
http://img87.imageshack.us/img87/6818/vissetup04ew8.png
<P align=center>http://img87.imageshack.us/img87/6818/vissetup04ew8.png</P>
http://img87.imageshack.us/img87/4233/vissetup05ac9.png
<P align=center>http://img87.imageshack.us/img87/4233/vissetup05ac9.png</P>
http://img87.imageshack.us/img87/9099/vissetup06pa6.png
<P align=center>http://img87.imageshack.us/img87/9099/vissetup06pa6.png</P>
http://img87.imageshack.us/img87/120/vissetup07yg3.png
<P align=center>http://img87.imageshack.us/img87/120/vissetup07yg3.png</P>
http://img87.imageshack.us/img87/2362/vissetup08pg0.png
<P align=center>http://img87.imageshack.us/img87/2362/vissetup08pg0.png</P>
http://img153.imageshack.us/img153/2316/vissetup08acp9.png
At this point, you
<P align=center>http://img153.imageshack.us/img153/2316/vissetup08acp9.png</P>
<P align=center><FONT face="Arial, Helvetica, sans-serif">At this point, you
will be downloading files from CVS. Once code has been downloaded, you must
will be downloading files from CVS. Once code has been downloaded, you must
create your classpath. Right click on project directory and select
create your classpath. Right click on project directory and select
Properties.</FONT></P>
Properties.
<P align=center>http://img87.imageshack.us/img87/1979/vissetup09bd5.png</P>
http://img87.imageshack.us/img87/1979/vissetup09bd5.png

<P align=center><FONT face="Arial, Helvetica, sans-serif">This step sets up the proper text encoding.</FONT></P>
== Configurating the project ==
<P align=center>http://img3.imageshack.us/img3/5742/eclipseupdate002vn0.png</P>

<P align=center><FONT face="Arial, Helvetica, sans-serif">Then click on Java Build Path. Remove any directories
This step sets up the proper text encoding.
that show up in the Source tab.</FONT></P>
<P align=center>http://img87.imageshack.us/img87/8536/vissetup10mm4.png</P>
http://img3.imageshack.us/img3/5742/eclipseupdate002vn0.png
Then click on Java Build Path. Remove any directories that show up in the Source tab.
<P align=center><FONT face="Arial, Helvetica, sans-serif">Then click Add
http://img87.imageshack.us/img87/8536/vissetup10mm4.png
Folder.</FONT></P>
Then click Add Folder.
<P align=center>http://img87.imageshack.us/img87/1783/vissetup11tj0.png</P>
http://img87.imageshack.us/img87/1783/vissetup11tj0.png
<P align=center><FONT face="Arial, Helvetica, sans-serif">Select src and tests
directories and click OK.</FONT></P>
Select src and tests directories and click OK.
<P align=center>http://img87.imageshack.us/img87/5358/vissetup12jd2.png</P>
http://img87.imageshack.us/img87/5358/vissetup12jd2.png
<P align=center><FONT face="Arial, Helvetica, sans-serif">Next click Add JARs
Next click Add JARs button.
http://img87.imageshack.us/img87/5068/vissetup13xi3.png
button.</FONT></P>
Click open the directories and select all the files within the libs directory and click
<P align=center>http://img87.imageshack.us/img87/5068/vissetup13xi3.png</P>
OK.
<P align=center><FONT face="Arial, Helvetica, sans-serif">Click open the
http://img87.imageshack.us/img87/7098/vissetup14aq5.png
directories and select all the files within the libs directory and click
At this point, you have finished setting up your classpath, so click OK.
OK.</FONT></P>
<P align=center>http://img87.imageshack.us/img87/7098/vissetup14aq5.png</P>
http://img87.imageshack.us/img87/8162/vissetup15io9.png

<P align=center><FONT face="Arial, Helvetica, sans-serif">At this point, you
== GenerateINI ==
have finished setting up your classpath, so click OK.</FONT></P>

<P align=center>http://img87.imageshack.us/img87/8162/vissetup15io9.png</P>
'''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.
<P align=center><FONT face="Arial, Helvetica, sans-serif">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
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
will need to create the server.ini file. These are the steps needed for that:
http://img87.imageshack.us/img87/654/vissetup16aj7.png
that:</FONT></P>
<P align=center>http://img87.imageshack.us/img87/654/vissetup16aj7.png</P>
http://img87.imageshack.us/img87/5623/vissetup17fh6.png
Once you have located GenerateINI.java, double click it to open in code window.
<P align=center>http://img87.imageshack.us/img87/5623/vissetup17fh6.png</P>
http://img87.imageshack.us/img87/9346/vissetup18pj2.png
<P align=center><FONT face="Arial, Helvetica, sans-serif">Once you have located
Then click Run =&gt;
GenerateINI.java, double click it to open in code window.</FONT></P>
Run.
<P align=center>http://img87.imageshack.us/img87/9346/vissetup18pj2.png</P>

<P align=center><FONT face="Arial, Helvetica, sans-serif">Then click Run =&gt;
http://img87.imageshack.us/img87/3479/vissetup19aj6.png
Run.</FONT></P>
At this point you have to enter the appropriate data to attach to your running database. Your responses are shown below in green.
<P align=center>http://img87.imageshack.us/img87/3479/vissetup19aj6.png</P>
http://img87.imageshack.us/img87/8042/vissetup21ql4.png
<P align=center><FONT face="Arial, Helvetica, sans-serif">At this point you have
to enter the appropriate data to attach to your running database. Your responses
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.
are shown below in green.</FONT></P>
<P align=center>http://img87.imageshack.us/img87/8042/vissetup21ql4.png</P>
http://img87.imageshack.us/img87/2260/vissetup22vc9.png

<P align=center><FONT face="Arial, Helvetica, sans-serif">Once you hit enter on
== Map Editor ==
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.</FONT></P>
Now we will set up map editor to run from within Eclipse. Click the black arrow beside green bug and follow through.
<P align=center>http://img87.imageshack.us/img87/2260/vissetup22vc9.png</P>
http://img87.imageshack.us/img87/8991/vissetup23bv0.png
<P align=center><FONT face="Arial, Helvetica, sans-serif">Now we will set up map
http://img87.imageshack.us/img87/1216/vissetup24mv2.png
editor to run from within Eclipse. Click the black arrow beside green bug and
http://img87.imageshack.us/img87/5185/vissetup25cc7.png
follow through.</FONT></P>
<P align=center>http://img87.imageshack.us/img87/8991/vissetup23bv0.png</P>
http://img87.imageshack.us/img87/9721/vissetup26nx8.png
<P align=center>http://img87.imageshack.us/img87/1216/vissetup24mv2.png</P>
http://img87.imageshack.us/img87/4593/vissetup27ix0.png
<P align=center>http://img87.imageshack.us/img87/5185/vissetup25cc7.png</P>
http://img87.imageshack.us/img87/3089/vissetup28cj5.png
<P align=center>http://img87.imageshack.us/img87/9721/vissetup26nx8.png</P>
http://img87.imageshack.us/img87/3632/vissetup29wc8.png
<P align=center>http://img87.imageshack.us/img87/4593/vissetup27ix0.png</P>
http://img87.imageshack.us/img87/7530/vissetup30ok1.png

<P align=center>http://img87.imageshack.us/img87/3089/vissetup28cj5.png</P>
At this point, map editor (tiled) should start.
<P align=center>http://img87.imageshack.us/img87/3632/vissetup29wc8.png</P>
<P align=center>http://img87.imageshack.us/img87/7530/vissetup30ok1.png</P>
<P align=center><FONT face="Arial, Helvetica, sans-serif">At this point, map
editor (tiled) should start.</FONT></P>

Revision as of 15:01, 1 March 2010



Creating the Project from CVS

First of all, from the view Package Explorer in Eclipse... http://img87.imageshack.us/img87/29/vissetup01fr3.png http://img87.imageshack.us/img87/5299/vissetup02cd7.png http://img87.imageshack.us/img87/3144/vissetup03qn0.png http://img87.imageshack.us/img87/6818/vissetup04ew8.png http://img87.imageshack.us/img87/4233/vissetup05ac9.png http://img87.imageshack.us/img87/9099/vissetup06pa6.png http://img87.imageshack.us/img87/120/vissetup07yg3.png http://img87.imageshack.us/img87/2362/vissetup08pg0.png 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. http://img87.imageshack.us/img87/1979/vissetup09bd5.png

Configurating the project

This step sets up the proper text encoding. http://img3.imageshack.us/img3/5742/eclipseupdate002vn0.png Then click on Java Build Path. Remove any directories that show up in the Source tab. http://img87.imageshack.us/img87/8536/vissetup10mm4.png Then click Add Folder. http://img87.imageshack.us/img87/1783/vissetup11tj0.png Select src and tests directories and click OK. http://img87.imageshack.us/img87/5358/vissetup12jd2.png Next click Add JARs button. http://img87.imageshack.us/img87/5068/vissetup13xi3.png Click open the directories and select all the files within the libs directory and click OK. http://img87.imageshack.us/img87/7098/vissetup14aq5.png At this point, you have finished setting up your classpath, so click OK. http://img87.imageshack.us/img87/8162/vissetup15io9.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: http://img87.imageshack.us/img87/654/vissetup16aj7.png http://img87.imageshack.us/img87/5623/vissetup17fh6.png Once you have located GenerateINI.java, double click it to open in code window. http://img87.imageshack.us/img87/9346/vissetup18pj2.png Then click Run => Run.

http://img87.imageshack.us/img87/3479/vissetup19aj6.png At this point you have to enter the appropriate data to attach to your running database. Your responses are shown below in green. http://img87.imageshack.us/img87/8042/vissetup21ql4.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. http://img87.imageshack.us/img87/2260/vissetup22vc9.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.