79366917

Date: 2025-01-18 10:04:41
Score: 1
Natty:
Report link

The selected answer will not work if your directory contain space. In my case, one of the folders in my path contain space and the selected answer did not work for me. What worked was:

cd "path/to/folder/cont aining/classes" && java ClassName arg1 arg2 && cd %cd%

This will execute your class and still remain in your current working directory

Reasons:
  • Blacklisted phrase (1): did not work
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: JoeAdeoye