Home Java process still running
Reply: 0

Java process still running

user5318 Published in September 19, 2018, 9:09 am

I'm using a method in shell script to execute a jar file.

function executeJar(){
 java -cp $BASE_PATH"myjar.jar":$CLASSPATH/* com.sample.main.App config.json

Even after the jar completes execution, the java process is still active and not getting killed. Should i kill it manually ? What is a solution for this.

share|improve this question
  • This is a very broad question and is lacking vital information such as a snippet of the main method of the java app. I suspect that most likely your program is not doing a System.exit() to signal the JVM to stop (thus also producing an exit code). Please refine the question more. – Aris_Kortex Apr 16 at 19:23
  • Does the java program stay running when you invoke it directly from the command line? – Bohemian Apr 16 at 21:42

1 Answer 1

active oldest votes
up vote 0 down vote
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.422161 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO