[an error occurred while processing this directive] Back to the main JavaBots page.

Installation Instructions

If you are on a Win95/NT system, you may need to modify the two batch files provided to run the SDK. If the jdk1.1.x\bin directory is not in your path, you will need to modify launchsim.bat with the full path to the java.exe interpreter. For example, if JDK1.1.5 was installed in c:\jdk1.1.5, you would edit launchsim.bat to look like this:
       c:\jdk1.1.5\bin\java Server.Server
Additionally, the setpath.bat will set the CLASSPATH environment variable so that the Java compiler/interpreter can find the JavaBots.jar file. JavaBots.jar contains all the classes comprising the JavaBot Simulator and the base Bot class from which all bots are extended. If you do not install the JavaBotSDK in the root directory of your hard drive, change setpath.bat so it holds the full path to the JavaBots.jar file. For example, if you uncompressed the JavaBotSDK into c:\code, the following setpath.bat would be neeeded:
       set CLASSPATH=%CLASSPATH%;.;c:\code\JavaBots\lib\JavaBots.jar
For convenience, you may want to put the above line in your Autoexec.bat instead. If any of this information is unclear to you, feel free to email me, ddbui@cise.ufl.edu.

Running an Example Battle

(For Win95)
To start the simulator, go to a DosPrompt window (do not try to run setpath.bat or launchsim.bat from the Explorer window) and change directory to wherever you've installed the JavaBotSDK (for example, c:\JavaBots\). Run the setpath.bat and then the launchsim.bat to start the simulator. Once the JavaBot Simulator is started, go to the File menu and select Quick Start After the selecting Quick Start, go to the File menu again and select Load Bot. When the Load Bot dialog box pops up, double-click on the samples directory and select a precompiled Bot class to run.

Sample Bots

Sample bots are provided in the "JavaBots\samples" directory. Some of these bots are thoroughly commented to help you to understand the workings of a Bot. To view their source code, use any text editor to open their .java files.

Back to the main JavaBots page.
[an error occurred while processing this directive]