Windows XP getting started

From Gardenwiki

Jump to: navigation, search

Low level guide to setting up a Windows XP development environment for easy entry.

Contents

Download

Download all the stuff you need.

Step 1

  • Create a development directory such as c:\devel
  • Extract Game Gardens zip into the development directory c:\devel\games
  • Extract Ant into the development directory c:\devel\ant

Step 2

  • Install the JDK
  • Install NetBeans if you use that IDE

Step 3

  • Right click on My Computer and choose Properties.
  • Click on the Advanced tab.
  • At the bottom of the window click the Environment Variables button.
    • In the section called System Variables, click New.
      • In the name field enter ANT_HOME
      • In the value field enter c:\devel\ant. Click OK.
    • In the section called System Variables, click New again.
      • In the name field enter JAVA_HOME
      • In the values field enter c:\Program Files\Java\jdk1.6.0_02 (the location of you JDK installation). Click OK.
    • In the section called System Variables find the Path variable and click Edit.
      • In the value field add ;c:\devel\ant\bin to the end of the existing value. Click OK.
    • Click OK at the bottom of the Environment Variables window.
  • Click OK at the bottom of the System Properties window.

Step 4

  • Reboot (may or may not be necessary)

Finally

Give it a test run, open up a command prompt (start->Run->cmd) Then do these steps:

cd c:\devel\games\atlantis
ant dist
ant server

Next open up another command prompt and do this:

cd c:\devel\games\atlantis
ant -Dusername=Test client

You should now be in the lobby of an atlantis game, congratulations!

Troubleshooting

  • The default Java home may be pointing to the JRE not the JDK (This causes an error which says ant can't find the tools.jar file)
  • If you get a invalid command when doing ant dist, make sure your HOME variables don't end in a \ (backslash). If you type ant and it returns the java runtime help text, then that is probably the issue.