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/arthas-tutorials-cn/command/jad/arthas-demo.md

6 lines
475 B
Markdown

下载 `math-game.jar`{{}} - [[源码]](https://github.com/alibaba/arthas/blob/af70d95383ddc3692dbcd0e9c1cbfc201ae43a98/math-game/src/main/java/demo/MathGame.java),再用 `java -jar`{{}} 命令启动:
`wget https://arthas.aliyun.com/math-game.jar; java -jar math-game.jar`{{execute T1}}
`math-game`{{}} 是一个很简单的程序,它随机生成整数,再执行因式分解,把结果打印出来。如果生成的随机数是负数,则会打印提示信息。