- Navigate to your eclipse workspace folder (eg.
cd ~/eclipse
) git clone https://github.com/oeoeaio/emma.git
- Add a new Java Project in eclipse
- Use the folder you just cloned into as the project root
- Select 'Use project folder as root for source and class files'
- Click 'Next' and make sure it has picked up your
src
folder
- Install MySQL or MariaDB on your local machine
- Login using your root credentials:
mysql -u root
- Enter your password if required
- You should be given access to the mysql prompt
- Create a new database to hold the schema:
CREATE DATABASE enduse;
- Note that you can replace
enduse
with whatever name you require - Exit from the mysql prompt:
exit;
- Load the most recent schema from inside the
schemas
directory of the cloned repository:mysql -u root -p enduse < [PATH TO YOUR ECLIPSE WORKSPACE]/emma/schemas/EMMA_DB_STRUCTURE_XXXX_XX_XX.sql
- Note that you should replace
enduse
with whatever name you used in step 5.
There are plenty of software packages which provide the ability to create databases and load schemas via a user interface. If this sounds preferable, I recommend phpMyAdmin, MySQL Workbench, or HeidiSQL.
You can compile a version of the software yourself from the source code using Eclipse. The only dependency that needs to be installed is the Connector/J library available from the MySQL website. Alternatively you can just use the pre-packaged emma.jar
file in the root directory of this repository.