This project demonstrates a distributed application built using Java CORBA. Ensure Java 8 is installed and properly configured before proceeding. Follow the steps below to set up and run the ORB, server, admin interface, and client application.
-
Java 8: Ensure Java 8 is installed and configured.
- Check Java version:
java -version
- If not installed, download and install Java 8 from the Oracle Java 8 website.
- Check Java version:
-
Environment Configuration:
- Set
JAVA_HOME
to your Java 8 installation path. - Add the
bin
directory to your system's PATH.
Example for Unix-based systems:
set JAVA_HOME=C:\path\to\java8 set PATH=%JAVA_HOME%\bin;%PATH%
- Set
- Navigate to
src/Server_Java/dataBase
. - Import the
boggled.sql
file into your localhost MySQL connection using a tool like phpMyAdmin or MySQL CLI.
Example using MySQL CLI:
mysql -u your_username -p your_password your_database_name < src/Server_Java/dataBase/boggled.sql
Start the ORB daemon (ORBD) to initialize the Name Service:
start orbd -ORBInitialPort 1099 -ORBInitialHost localhost
This command starts the ORB daemon on port 1099
and binds it to localhost
.
- Navigate to the
src/Server_Java
directory:cd src/Server_Java
- Start the server by running:
java Server
Note: You can connect to the server by entering the IP address of the machine hosting the server.
- Navigate to the
src/Server_Java
directory:cd src/Server_Java
- Start the Admin application:
java AdminMainApplication
- Navigate to the
src/Client_Java
directory:cd src/Client_Java
- Start the Client application:
java MainApplication
- Ensure the IP address of the server is correctly configured in the client application when joining the game.
- Use
localhost
for testing on a single machine. - For debugging, check the console logs for any connection or initialization errors.