Stendhal on Eclipse: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>MartinFuchs
imported>MartinFuchs
Line 44: Line 44:
(This entry has higher priority than the tiled.jar in the libs folder but this code is highly outdated)
(This entry has higher priority than the tiled.jar in the libs folder but this code is highly outdated)
==To make it run the server==
==To make it run the server in Debug mode==
* In the toolbar there is a green icon which looks like a bug.
* In the toolbar there is the "Debug" button, which looks like a little, green bug. There is a little black arrow on the right side of it.
* This will open a menu, please choose "Open Debug Dialog..."
: there is a little black arrow on the right side of it.
* Then in the dialog select "Java Application" and click on the "new" icon in the top left corner.
* This will open a menu, please choose "Debug..."

* Then in the dialog select "Java Application" and click on the "new" icon in the top left corner.
<pre> Name: StendhalServer
<pre> Name: StendhalServer
Main class: marauroa.server.marauroad
Main class: marauroa.server.marauroad
[x] include libaries when searching for the main class
[ ] include system libries when searching for the main class (default)
[ ] include inherited mains when searching for the main class (default)
[ ] Stop in main (default)

on the [Arguments] tab:
on the [Arguments] tab:
Program arguments: -c marauroa.ini -l
Program arguments: -c server.ini -l (optional)
VM arguments: -Xmx128M
on the [Classpath] tab:

button "Advanced"
on the [Classpath] tab:
button "Advanced"
(*) add folder | OK
(*) add folder | OK
and select the root folder </pre>
and select the root folder | OK

button "Add JARs..."
select /Stendhal/libs/commons-lang.jar | OK
</pre>

* button [Debug]
* button [Debug]
And then the server should be started.
And then the server should be started.