Sunteți pe pagina 1din 9

RedTea Team

ATM Simulator Project

Installation Guide
1. Step 1: Database Installation - Download MySQL 5.1 free version and install it on your computer. Link: http://dev.mysql.com/downloads/mysql/5.1.html#win32

- Go to the link and select the file Windows MSI Installer (x86) version 5.1.37 in a mirror. This file is approximately 97.9M. You may need to register the page to be able to download. - After download, you run the .msi file to install MySql. The screen looks like this:

RedTea Team

ATM Simulator Project

- During the installation, if it asks for passwords, put 123456 for all the fields. (Or you can give your own password, but need to change in the program also. We recommend you should input 123456 for ease of use). After that will be this screen.

RedTea Team

ATM Simulator Project

Now you need to import data to your database. Because by default Sun does not have a nice-friendly interface to import. But we can do it manual but easily. - Open Run command window:

- Type this mysql u root p h localhost. Then it will ask you for a password. This password is the above you typed in. (123456)

When you are in, the Welcome screen is like this:

RedTea Team

ATM Simulator Project

- Now you open the file SQL File.txt in the package, copy the whole text and copy it like this:

RedTea Team

ATM Simulator Project

You will see the screen as below:

You can check if your database has created by a short command: show databases;

RedTea Team

ATM Simulator Project

Or check on Netbeans you will also see the MySQL server there:

Done for Database step. No need to care about it anymore.

RedTea Team

ATM Simulator Project

2. Step 2: Run the application

Use Netbeans to run, simply select the project and select Run the ATMServer program, and Run the ATMClient program. This is the Graphical version:

This is the console based version:

RedTea Team

ATM Simulator Project

*Notes:
Use Netbeans 6.5 or newer, because it has GlashFish 3.0 server built in.

Start the server before the client ATM.


At initial step, the programs will automatic create 2 files on your disk

C:\ATM\card.txt and C:\ATM\envelope.txt to simulate the ATM card to login and the envelope to deposit money. You can modify these files to login as another user.
Log file is stored at ATMServer\Log\ATMServer.txt.

Note on GUI version, there is some mysterious display defects not been fixed

yet. But the methods are working fine every time we run it at the first time.
Sending notification email when balance warning occurs not working under

campus proxy. But it can work outside. If you can not connect to database, go to the server change this line <property name="eclipselink.jdbc.password" value="yourpasswordhere"/>

RedTea Team

ATM Simulator Project

--End of the Installation Guide--

S-ar putea să vă placă și