NetBeans6Stendhal: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Timothyb89 No edit summary |
imported>SimonSmall Added category NetBeans |
||
| (42 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
{{Navigation for Stendhal Top|Building & Hosting}} |
|||
{{Navigation for Stendhal Builders and Hosters}} |
|||
== Warning == |
|||
Most of our developers use Eclipse, so using that is recommended, unless you are an experienced Netbeans user. |
|||
==Why another tutorial?== |
==Why another tutorial?== |
||
I know- there's already a tutorial for NetBeans, but it was written for older versions of NetBeans (namely, version 5.5). NetBeans 6 is considerably different and allows '''much''' easier configuration. Also, I'm trying to convert some over the other devels using Eclipse :) |
I know- there's already a tutorial for NetBeans, but it was written for older versions of NetBeans (namely, version 5.5). NetBeans 6 is considerably different and allows '''much''' easier configuration. Also, I'm trying to convert some over the other devels using Eclipse :) |
||
| Line 63: | Line 70: | ||
In the Test Package Folders section, add '''/path/to/Stendhal/'''source/stendhal/tests (again, replace bold).<br/> |
In the Test Package Folders section, add '''/path/to/Stendhal/'''source/stendhal/tests (again, replace bold).<br/> |
||
To complete the setup, click '''Finish.''' |
To complete the setup, click '''Finish.'''<br/> |
||
http://timothyb89.homelinux.org/wikipix/stend-nb6/mkprj2.png |
http://timothyb89.homelinux.org/wikipix/stend-nb6/mkprj2.png |
||
</p> |
</p> |
||
== Add Libraries == |
|||
<p> |
|||
This could be the easiest step :)<br/> |
|||
First off, in the '''"Projects" ''' pane, expand the new Stendhal project, right click on '''Libraries ''', and choose '''Add JAR/Folder...'''.<br/> |
|||
Now, navigate to '''/path/to/Stendhal/'''source/stendhal/libs/ and, holding the '''Control''' or '''Shift''' key, '''select each jar''' and '''click Open'''. |
|||
http://timothyb89.homelinux.org/wikipix/stend-nb6/addlibs.png |
|||
</p> |
|||
== Configure Project == |
|||
<p> |
|||
The last step is to set up the project to run the code. I will go over setting up the IDE to run the client, but not the server. Though I'm not going over this, it is possible.<br/> |
|||
The first thing to do is right click on the new project in the '''Project''' pane, found on left of the main IDE window. From there, choose, choose '''Properties'''.<br/> |
|||
You should now see the project properties window. First, choose '''Libraries''' from the left, and then the '''Run''' tab in the main pane. From here, choose '''Add JAR/Folder''' and add your stendhal folder. For example, add '''/path/to/Stendhal/'''source/stendhal . <br/> |
|||
http://timothyb89.homelinux.org/wikipix/stend-nb6/conf1.png |
|||
</p> |
|||
---- |
|||
<p> |
|||
Now choose '''Run''' in the left menu again. Choose '''New''', enter '''Client''' for the name, and fill in the following: (Any information not provided should be left empty)<br/> |
|||
* '''Main Class:''' games.stendhal.client.stendhal<br/> |
|||
* '''VM Options:''' -Xmx256m<br/> |
|||
Now you can simply click '''OK''' to finish.<br/> |
|||
http://timothyb89.homelinux.org/wikipix/stend-nb6/conf2.png |
|||
</p> |
|||
== Finish Setup == |
|||
You should be done, so hit the run button on the main toolbar to start the client. |
|||
http://timothyb89.homelinux.org/wikipix/stend-nb6/runbtn.png |
|||
[[Category:Stendhal]] |
[[Category:Stendhal]] |
||
[[Category:NetBeans]] |
|||