rwth-acis / Gamification-Framework

Gamification of Community Information Systems
6 stars 2 forks source link

Start script for running in single node, not working on Windows #27

Closed fxjordan closed 2 years ago

fxjordan commented 2 years ago

After building the project using ./main.sh -m build we should be able to run the Gamification Framework in a single node using ./main.sh -r start_one_node.

This is working as expected on macOS. However, on Windows the script is failing with the following output:

$ ./main.sh -r start_one_node
[Run]
[Start One Node]
Fehler: Hauptklasse i5.las2peer.tools.L2pNodeLauncher konnte nicht gefunden oder geladen werden
Ursache: java.lang.ClassNotFoundException: i5.las2peer.tools.L2pNodeLauncher

We tracked the error down to the GamificationGameService/start_network_in_a_node.sh file, which is called by main.sh. There is likely an error with the classpath argument of the java command, which causes the classes not being loaded.

Other las2peer services have different launcher scripts for macOS/Linux and Windows, so we should also add a start_network_in_a_node.bat here and call it from the main.sh if the OS is Windows.