Last updated: 04-Jun-2003 1:05 PM

Group 53 (The Herd)

STAGE TWO

## Links

- SAD (v2)
- SRS (v3)

## Download v1.01

- All code [zip]

## Setup Instructions for Virtual Casino v1.01

- Note: you must install MYSQL and JDBC Drivers for mysql

### SERVER:

- This assumes some administration access to configure.
- extract files to directory on server with mysql installed.
- Check file permissions if on manning.
  - (the default umask makes .sh files unexecutable by defalt when uploaded)
- If DB needs to be set up then run the following:
  - cd setupDB/
  - javac ExecSQL.java
  - java ExecSQL create.sql
  - cd ..
- The create.sql can also be used from within mysql
  - mysql> source create.sql
- Add the com.mysql.jdbc.Driver to the java CLASSPATH
- then:
  - ./setupServer.sh
    - (if on windows... then use javac *.java )
  - ./runServer.sh
    - (if on windows use java ServerFrame )

### CLIENT:
(on windows machine)

(Automated method):

- run step1.exe
  - (extracts to c:\blackjack\ - if this is unavailable see manual method)
- run build.exe
- if server is on manning run manningxml.exe
- if server is on localhost run localxml.exe
- run rungame.exe

(Manual Method):

- Unzip database.zip to folder of your choice.
- Run buildGame.bat
- Run runGame.exe
- if server is on manning run manningxml.exe
- if server is on localhost run localxml.exe
- If server is neither then edit NetConfig.xml IP Address to match your server.
- Manual Build: javac *.java
- Manual Run: java BlackjackFrame

## TESTING:

## Server:

- to std output (screen) : java ServerFrame -t
- to file : java ServerFrame -t >> file.txt

##
Client:

- to std output (screen) : java BlackjackFrame -t
- to file : java BlackjackFrame -t >> file.txt