Could someone please explain to me why it would be better to pass in parameters like this:
java -Dhost=Me -Dport=123 ReservationSystem I don't think this way works. At least it didn't for me. I did get to work:
java -Dmypkg.myclass.myvar=100 ReservationSystem
But just to set variables I could not. Is this working for you?
In my final submission I had any variables to be passed after the class name, not before. However I did have some variables that are used to control my background timer
thread to set the frequency.
java -Dsuncertify.fbnserver.FBNServer.TimerLength=20 FBNServer
And I only specified that they could be set in the comments to the class, not in the documentation since this variable is not one of the acceptable parameters we are allowed to pass.