For a class exercise on game trees, I have to write code that works with a .jar file. I haven’t used Java in this way before. My Eclipse project tree looks like this:

To run the code, I was told to do this on the command line:
java -jar VierOpEenRij.jar Mens spel.speler.Random 5 5
How do I debug this code? I have tried tinkering with Eclipse’s debug configurations and I also tried executing jdb -jar VierOpEenRij.jar Mens spel.speler.Random 5 5 but I can’t figure out a way to start the debugger.
How do I debug my code when a .jar file contains the main method?
I might be completely off as I haven’t really been in this situation, but wouldn’t right-click on the jar -> debug as … -> Java application do the trick?
EDIT:
Managed to make it work this way:
For some reason I would expect to be able to right-click the jar and do directly dbug as java app though… the main is indicated in the manifest, but it doesn’t seem to find it. Don’t know why. But in the meantime, that works.
EDIT2: Actually, now I can directly right-click the jar (or even the project) and select the right main when a dialog pops up, and it’s all good. Maybe I missed something earlier. Any way, you’re good to go.)
In the picture below, MainInJar.main() calls ClassOutOfJar.somethingOutOfJar(), which prints something to the screen.