IM_Server Eclipse Instructions
File -> Open Projects from file system Directory Locate the cloned repo Choose the IM_Server folder Finish
Expand IM_Server project in Eclipse Expand lib package right click json_simple-1.1.1.jar and mysql-connector-java-5.1.45-bin.jar build path -> Add to build path Expand view package Run ServerWindow.java as java application
To run the program you need a running mySQL server. This can be done using MySQL Workbench which can be downloaded at: https://www.mysql.com/products/workbench/
Once MySQL Workbench is installed create a new connection by clicking on the "+" and configure the connection with the following settings: hostname = 127.0.0.1 port = 3306 username = root password = admin
Once the connection is set up, click on it to run the server. Paste the following query into the query window to initialize the database.
CREATE DATABASE chatDB;
CREATE TABLE IF NOT EXISTS
userID VARCHAR(40) NOT NULL,
password VARCHAR(40) NOT NULL,
PRIMARY KEY (
ENGINE = InnoDB;
Execute the query by clicking the lightning bolt.