bash - What does -h option mean in java command line? -


during reading bash script file, see this:

java -cp ${cp} ${class} -h redis > /dev/null 2>&1 & 

does have idea "-h" , "redis"?

running "java -h" seems print info, why need print info when running java program background process?

and "redis", know it's database in memory, don't know mean add java command line. mean java first check if process named "redis" exists?

thank you!

any arguments come after class name arguments class' main static method; not argument java. i.e., ${class} called yourclass.main(new string[]{"-h", "redis"}).


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -