Windows XP getting started
From Gardenwiki
Low level guide to setting up a Windows XP development environment for easy entry.
Contents |
Download
Download all the stuff you need.
- Ant from ant.apache.org
- NetBeans JDK combo from java.sun.com or netbeans.org
- Game Gardens toolkit files
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 name field enter
- 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 name field enter
- In the section called System Variables find the
Pathvariable and click Edit.- In the value field add
;c:\devel\ant\binto the end of the existing value. Click OK.
- In the value field add
- Click OK at the bottom of the Environment Variables window.
- In the section called System Variables, click New.
- 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 yourHOMEvariables don't end in a \ (backslash). If you typeantand it returns the java runtime help text, then that is probably the issue.

