Fix arg order for Storage Emulator start command #4195
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Issue
The Storage Emulator crashes on start for me on OpenJDK 11.0.12. The only error logs are
Cause
The args passed in the start command are in the wrong order:
java -jar -Duser.language=en <jarfile> serve
instead ofjava -Duser.language=en -jar <jarfile> serve
as recommended. This causes-Duser.language=en
to be mistakenly interpreted as the JAR file:This PR also adds the above message to the error logs.
Scenarios Tested
Tested the above commands on the command line to confirm that the program launches successfully with the new order:
Also verified that the Storage Emulator is launched successfully with the fix.