Stendhal on Eclipse: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Kymara
correct wanring
imported>GambitRicky
Line 3: Line 3:
# First of all open the view called Package Explorer.
# First of all open the view called Package Explorer.
# Create new 'Java Project'
# Create new 'Java Project'
# Get stendhal from CVS. (Connection type: pserver, User: anonymous, Password - leave blank, Host:arianne.cvs.sourceforge.net, Repository: /cvsroot/arianne)
# Get stendhal from CVS.
# make sure that the marauroa.ini is in your stendhal project folder.
# Make sure that the marauroa.ini is in your stendhal project folder.
# right click on your project folder and select "Properties" in the context menu.
# Right click on your project folder and select "Properties" in the context menu.
# then select "Java Build Path" on the left side of the dialog box.
# Then select "Java Build Path" on the left side of the dialog box.
# Now add '''three source folders''' by clicking on the "Add Folder..." button
<pre>source folder: stendhal/src
<pre>
default output folder: stendhal/classes
source folder #1:
On the "library" tab: [Add jars] and select all the files in stendhal/lib</pre>
stendhal
Included:(All)
Excluded:(None)
Native library location: (None)

source folder #2:
stendhal/src
Included:(All)
Excluded: src/;tiled/src;tools/creturesxml/;tools/newrp/;tests/;
Native library location: (None)

source folder #3:
stendhal/tests
Included:(All)
Excluded:(None)
Native library location: (None)

default output folder: stendhal/bin
</pre>
8. On the "Libraries" tab: click on the "Add JARs" button and select all the files in stendhal/lib

Eclipse should be able to compile the source code now. There should be a little yellow sign before your project folder but not red X. The package explorer should now display the "src" folder directly below the root folder with a different icon, the icon is like a small grid.
Eclipse should be able to compile the source code now. There should be a little yellow sign before your project folder but not red X. The package explorer should now display the "src" folder directly below the root folder with a different icon, the icon is like a small grid.