Documente Academic
Documente Profesional
Documente Cultură
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
- 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
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)
RedTea Team
- Now you open the file SQL File.txt in the package, copy the whole text and copy it like this:
RedTea Team
You can check if your database has created by a short command: show databases;
RedTea Team
Or check on Netbeans you will also see the MySQL server there:
RedTea Team
Use Netbeans to run, simply select the project and select Run the ATMServer program, and Run the ATMClient program. This is the Graphical version:
RedTea Team
*Notes:
Use Netbeans 6.5 or newer, because it has GlashFish 3.0 server built in.
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