java -Ddata=args -Dcommit=no -jar post.jar
In the above script,how are data and commit accessed in java?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You use
System.getProperty:As the name suggests, these are system properties and not command-line arguments as your title suggests. Command-line arguments would be
java -jar post.jar arg1 arg2