I execute the following command to run my jar:
java -cp test.jar com.mycomp.Test
jps
-bash-4.2$ jps 20240 Test
I