You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
arthas/tutorials/katacoda/command-vmoption-en/arthas-demo.md

18 lines
587 B
Markdown

Download `math-game.jar` and start with the `java -jar` command:
`wget https://arthas.aliyun.com/math-game.jar
java -jar math-game.jar`{{execute T1}}
`math-game` is a very simple program that randomly generates integers, performs factorization, and prints the results.
If the generated random number is negative, a error message will be printed.
To make a contrast with using vmoption afterwards, now we use `Ctrl+c`{{execute interrupt}} and the program exit without printing any additional infomation.
Then we start `math-game` again
`java -jar math-game.jar`{{execute T1}}