A simple Java client/server dictionary application. The server loads word definitions from dictionary.json, and the Swing client connects to the server to search for words.
- Java 17 or newer
- IntelliJ IDEA
The project uses Gson, included in lib/gson-2.10.1.jar.
- Open the project in IntelliJ IDEA.
- Run
server.DictionaryServer.- Program arguments:
3000 dictionary.json - Working directory: the project root.
- Program arguments:
- Run
client.ClientGUI. - Enter a word and click Search.
Always start the server before the client.
From the project root, compile the source files:
javac -cp "lib/gson-2.10.1.jar" -d out/production/DictionaryProject src/server/*.java src/client/*.javaStart the server:
java -cp "out/production/DictionaryProject:lib/gson-2.10.1.jar" server.DictionaryServer 3000 dictionary.jsonIn another terminal, start the client:
java -cp "out/production/DictionaryProject:lib/gson-2.10.1.jar" client.ClientGUI