This document will help you set up and use our special computer program designed for a word game called "Boggled." A client-server application program that is built in Java programming language and integrating CORBA in its architecture.
Clone the project.
- Visit the website https://www.openlogic.com/openjdk-downloads and select the java version 8 on the dropdown menu. Other specifications will be dependent on your machine.
- Download zip file of the version
“8u402-bo6”. - After downloading, extract the zip file on any directories you want but preferably on ‘C:\Program Files...’. Make sure to remember the path of where you extracted the zip file.
- On the windows search bar, search “environment variables” and select the “Edit the system environment variables”.
- Locate and click “Environment Variables...” in the pop up.
- Under system variables, either add or replace the variable JAVA_HOME using the “edit” or
“new” button. Make sure to input correct values. Click OK.
Variable name: JAVA_HOMEVariable value: path to your JDK where you extracted the zip file (e.g., C:\Program Files\Java\jdk-8)
- Again, Under System Variables find the Path variable and click Edit. Add the following to the
path if not yet included:
%JAVA_HOME%\bin - Move up the
%JAVA_HOME%\binto top using ‘Move Up’ Button. Click OK to close all dialogs.
- Download the sql file found in this drive: https://drive.google.com/drive/folders/1u4DKBg4vcVM4CUvIFYxvH98uxqQTSxNy
- Assuming that you have a MySQL workbench installed in your machine, open a database
connection (or create one if necessary) and enter your credentials. Make sure to remember your
credentials as it will be used in the program specifically in
ServerJDBCclass. - Right-click on the open area on the right and click create schema. Create a schema called ‘boggleddb’ and click ‘Apply’, then ‘Apply’ and ‘Finished’.
- On the heading tab, choose the Server and Data Import.
- Click the ‘Import from self-contained file’, locate and input the sql file that you downloaded earlier, then choose the database ‘boggleddb’ then click ‘Start Import’.
- After that, it will show ‘Import Complete’, and you may check the database using a query.
- Locate and open the project file you just cloned using IntelliJ Idea.
- Optional: If you want to play the game with LAN, locate the .config file in the project directory: src/main/java/.config and change the host variable to the ip address of the server. (Use cmd and issue the command ‘ipconfig’ to get the IP address of the server.)
- Optional: Turn off the windows defender firewall if planning to play on LAN and disable any other virtual machine like virtual box.
- If planning to play locally, leave the localhost as it is.
- The
ServerJDBCclass manages the connection between the server and the database. Assuming that you have a username and a password in MySQL, use this to change the credentials of theServerJDBCclass. It is found in this project’s directory:src/main/java/Server_Java/model/ServerJDBC.java - On code lines 11,12 and 13, change the credentials you have in your MySQL account.
- Start the ORB daemon using cmd or the terminal of the IntelliJ Idea. Issue the command:
start orbd -ORBInitialPort 2000 -ORBInitialHost <host from .config file> - In the project directory:
src/main/java/Server_Java/, locate the class ServerJava class and either compile(build) or run the class. - Once the server is ready, it will show the User Interface of the server.
- If the client is on a different computer, Locate and open the project file they cloned using IntelliJ Idea.
- Optional: If the client is on a different computer, turn off the windows defender firewall and disable any other virtual machine like virtual box.
- Optional: If you want to play the game with the server on a different computer, locate the .config file in the project directory: src/main/java/.config and change the host variable to the ip address of the server. If planning to play locally, leave the localhost as it is.
- Make sure that the server is running first.
- In the project directory:
src/main/java/Client_Java/, locate the classClientJavaclass and either compile(build) or run the class. - Once the connection is successful, the User Interface for the client will show.
- You are now ready to interact with the game.
- BARCELLANO, Cristian Dave M.
- COLOMA, Stephen M.
- GUZNMAN, Sanchie Earl M.
- LEUNG, Leonhard T.
- NONATO, Marius Glenn M.
- RAGUDOS, Hannah T.
- RAMOS, Jerwin Kyle R.



