Not sure exactly what I'm doing wrong.
This is my local file structure:
If i run the following command from the command line in windows in the above directory: java -jar server.jar -l SAD1.lvl -g 50 -c "java -Xmx2048m sc.SearchClient"
. Then the program executes completely as it should i.e. a GUI displays and then some computations etc.
My problem is that I want to move this to eclipse instead, so I can simply build and run my program after code edits instead of running it from the command line. This is how my file structure looks in eclipse:
As you can see I have added the jar to the project build path. Additionally, after right clicking Assignment 1 -> Run As.. -> Run Configurations -> Arguments I have added the following arguments to the field "Program Arguments":
Yet when I run the program from eclipse I get some parts of the program (early lines in the Main method) to print some text to the console but the main GUI that shows up when I run it from the command line does not show. Also any additional text output that I get in the command line does not show either.
I'm clearly missing something here. Any help would be appreciated.