#!/bin/bash
JAVA_HOME="jdkpath"
CLASSPATH="JAR file path" .
$JAVA_HOME/bin/java -cp $CLASSPATH JavaClass
exit 0
I am using the above shell script to call my Java program but I want to make sure that once the shell script calls the Java program, it does not sit idle and wait for the program to complete. I don't know how to do that. I read in an online forum that I can put an "&" symbol at the end of the command where I supply the JAR file path but I am not sure since I am new to shell scripting. All the help is greatly appreciated.