A Sudoku game with the ability to register players and save their moves to a database.
- Apache Maven,
- Apache Derby,
- Payara server.
-
🔗 https://maven.apache.org/download.cgi
Download the "Binary zip archive" (e.g., apache-maven-3.9.6-bin.zip).
-
Extract it to a directory, for example:
C:\apache-maven -
Click Start → Type "Environment Variables" → Edit system environment variables. In the System Variables section, find Path, click Edit, and add a new entry:
C:\apache-maven\binClick OK and close all windows.
-
Open Command Prompt (cmd) and type:
mvn -versionYou should see something like this:
Apache Maven 3.x.x Maven home: C:\apache-maven Java version: 17.0.x -
🔗 https://db.apache.org/derby/releases/release-10_17_1_0.cgi
Download the "db-derby-10.17.1.0-bin.zip" version.
-
Extract it to a directory, for example
C:\apache_derby -
🔗 https://www.payara.fish/downloads/
Download the Payara Server Full version.
-
Extract it to a directory, for example
C:\payara_server -
Open Control Panel → System → Advanced System Settings → Environment Variables. Under System Variables, find Path, click Edit, and add:
C:\path\to\your\payara\binClick OK to save changes. -
git clone https://github.com/karlikp/Sudoku.git
Navigate to the your apache_derby directory, for example:
cd C:\apache_derby\bin
Start the DB server:
./startNetworkServer
Create empty dabase with ij tool :
./ij
CONNECT 'jdbc:derby://localhost:1527/sudoku;create=true';
EXIT;
Navigate to the Payara server directory:
cd /path/to/your/payara_server/bin
Start the server:
./asadmin start-domain
Go to app_source folder :
cd path/to/Sudoku/app_source
Build the project:
mvn clean package
Navigate to the app_source directory:
cd path/to/Sudoku/app_source/target
You should saw Sudoku_Web-1.0.war.
Deploy the application to Payara:
/path/to/payara_server/bin/asadmin deploy Sudoku_Web-1.0.war
Check deployment status:
/path/to/your/payara_server/bin/asadmin list-applications
If you see "Sudoku_Web-1.0", the application has been successfully deployed.
Open the application in a browser:
http://localhost:8080/Sudoku_Web-1.0




