JMessenger is a terminal-based chatUtils application that allows you to communicate seamlessly with others over the internet. It supports both client and server functionalities, making it easy to set up and use.
- You don't need to forward ports on your router if UPnP (Universal Plug and Play) is enabled. This allows the application to automatically configure the router for communication.
Download the executable (.exe
) from
the Releases section.
Use the following commands in your console:
- For the Chat Server:
./Server.exe
- For the Chat Client:
./Client.exe
Download the JAR (.jar
) from
the Releases section. Use the
following commands in your console:
- For the Chat Server:
java -jar Server.jar
- For the Chat Client:
java -jar Client.jar
There are two main application classes:
- ClientMain (
app.client.ClientMain
): Handles client-side operations, allowing users to send and receive messages. - ServerMain (
app.server.ServerMain
): Manages server-side operations, redistributing messages to connected clients.
- Start the
ChatServer
by running theServerMain
class. - Open a new terminal and start a
ChatClient
instance. When prompted, enter the IP address of the computer running the server. If the server is running locally, you can leave it empty or enterlocalhost
.
- JDK 21 or higher
- GraalVM JDK 21 or Higher
- Powershell
- Open the project folder with your terminal.
- Execute the following command to install dependencies:
./mvnw install
To build this project, run the following command in the root folder:
.\mvnw clean install
To build the artifacts, run this command in the root folder:
.\mvnw clean package
To create a fast build for development with low optimization, run the following command:
.\mvnw -Pnative-dev clean package
This will generate a native application with minimal optimization, suitable for development and testing purposes.
To create a slow build, but optimized application, run the following command:
.\mvnw -Pnative-prod clean package
To create PGO executables for even better performance on production, follow these steps:
1 - Create the PGO Instruments
.\mvnw -pnative-pgo-build clean package
This will generate the PGO instruments in the src/assets/pgo
directory
and their respective folders.
2 - Execute the PGO Instruments
- Run the PGO instruments.
- Interact with the application to generate profiling data.
- Close the application.
3 - Create the production file with PGO
Run the following command to create the production files with PGO:
.\mvnw -pnative-prod-pgo clean package
If you would like to contribute to JMessenger, please fork the repository and submit a pull request. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License - see the LICENSE file for details.