Stendhal on Eclipse: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Hendrik Brummermann |
imported>Hendrik Brummermann |
||
| (6 intermediate revisions by 4 users not shown) | |||
| Line 7: | Line 7: | ||
* If you can play Stendhal, you already have Java and can skip this step. |
* If you can play Stendhal, you already have Java and can skip this step. |
||
* If you do not have java installed, please download it https://java.com<br> (if you are on Linux, use your packet manager) |
* If you do not have java installed, please download it https://java.com<br> (if you are on Linux, use your packet manager) |
||
== Get Node.js == |
|||
* https://nodejs.org (optional: for building & using web client) |
|||
== Get Eclipse== |
== Get Eclipse== |
||
| Line 12: | Line 16: | ||
* Go to https://www.eclipse.org/downloads/ |
* Go to https://www.eclipse.org/downloads/ |
||
* Download: "Eclipse IDE for Java Developers" |
* Download: "Eclipse IDE for Java Developers" |
||
* Unzip the download |
* Unzip the download and run Eclipse |
||
* In Eclipse, close the "Welcome" window |
* In Eclipse, close the "Welcome" window |
||
| Line 30: | Line 34: | ||
* In the dialog select: "Git -> Projects from Git" and click "Next". |
* In the dialog select: "Git -> Projects from Git" and click "Next". |
||
* Select "Clone URI" and click "Next". |
* Select "Clone URI" and click "Next". |
||
* Fill in the following information: |
|||
| ⚫ | |||
** '''URI''': |
|||
| ⚫ | |||
*** GitHub read/write (SSH): <code><nowiki>git@github.com:arianne/stendhal.git</nowiki></code> |
|||
* The result of the fields are filled in automatically, click "Next" |
* The result of the fields are filled in automatically, click "Next" |
||
* On the Branch selection page, keep everything selected and click "Next" |
* On the Branch selection page, keep everything selected and click "Next" |
||
| Line 69: | Line 76: | ||
[[File:Eclipse_new_debug_configuration.png]] |
[[File:Eclipse_new_debug_configuration.png]] |
||
Name: StendhalServer |
|||
Main class: games.stendhal.server.StendhalServer |
Main class: games.stendhal.server.StendhalServer |
||
* All other settings ("include system libries", "Stop in main", ... can be left at their default value. |
* All other settings ("include system libries", "Stop in main", ... can be left at their default value. |
||
| ⚫ | |||
* on the [Classpath] tab: click "UserEntries" - button "Advanced" - (*) add folder | OK - and select the "stendhal" project root folder | OK |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
VM arguments: -Xmx128M |
|||
NOTE: On newer Eclipse versions, the [Classpath Entries] are under Dependencies tab. |
|||
click UserEntries |
|||
button "Advanced" |
|||
(*) add folder | OK |
|||
and select the "stendhal" project root folder | OK |
|||
</pre> |
|||
| ⚫ | |||
| ⚫ | |||
== Start Stendhal Client == |
== Start Stendhal Client == |
||