Class: MetaData.java
Class: User.java
Class: Login.java
Class: FormatUI.java
Class: LoginUI.java
Class: LoginMain.java
Author: Shahrzad Jahangirian
Language: Java (using Java 6) Download Java 6 and
Download Java Runtime 6(JRE)
Database: MySql
Date Added: Jan 12, 2014
Licence: All source codes are for showing my skills in Software Development to get me a Job as an Application Developer.
You are not allowed to sell this Application or use my codes to develop an application for Sale or apply my codes to develop
software for commercial use and profit. You can offer me a price to buy the Application for mass production or buy my codes to
develop your application for profit. Also you may offer me a price to buy this Application for your Business and ask me to update
the codes to match your Business Requirements.
Description: This is a MySql Login/ Signup User Interface, Problem and Database domains codes written
in Java language with MySql Database that could be attached to any Application that needs
MySql Database Login and Signup. It has all codes for connection to MySql and creating a
Database and a Table. Duplicate user by username is not allowed, and all validation have been coded.
How to Run: I tested all codes on Windows 7 Command Prompt with
Java(TM) SE Runtime Environment 6 on my computer. ( you may download it by visiting
this link )
Also to run this application you have to have
MySql installed in your computer and know what is your MySql Username and Password. I used MySql 5.6.15 for this
Application. In the time of writing of this page you can download MySQL Installer 5.6.15 (234.8M) from
http://dev.mysql.com/downloads/windows/installer/
Then you need to create all files and save it in a folder in your computer such as C:\javacodes
and compile and run at command prompt as follows. I assumed you saved all files at C:\javacodes
For this Application first you need to run MetaData.java class successfully with your MySql username and password placed at
jdbc:mysql://localhost?user=YourMysqlUsername&password=YourMysqlPassword
for creating Payroll Database and Employee Table as follows:
C:\javacodes> javac MetaData.java "This is to compile"
C:\javacodes> Java MetaData "This is to run"
Obviousley you should not have any error messages and also make sure Database and Table
have been created by visiting your own MySql Database in your computer.
Then use a .bat file or compile following files on command prompt
C:\javacodes> javac User.java -d c:\javacodes
C:\javacodes> javac Login.java -d c:\javacodes
C:\javacodes> javac FormatUI.java -d c:\javacodes
C:\javacodes> javac LoginUI.java -d c:\javacodes
C:\javacodes> javac LoginMain.java "compiles the LoginMain class"
C:\javacodes> Java LoginMain "and finally with this statement runs this Application"