Hi guy,
I using the batch program to trigger specific main class in JAR. It is simplest JAVA -cp %classpath% Main_class cmd instruction.
Initialy the jdk is not installing cause JAVA command is not found error. After i have install the jdk, put jdk\bin to path, set JAVA_HOME env. I should able execute with my batch program. Whereas, I experienced it is able execute this command in normal cmd but not my batches file.
I have restart the batches, i guess the env variable refresh. Who's know what's the cause?
I using the batch program to trigger specific main class in JAR. It is simplest JAVA -cp %classpath% Main_class cmd instruction.
Initialy the jdk is not installing cause JAVA command is not found error. After i have install the jdk, put jdk\bin to path, set JAVA_HOME env. I should able execute with my batch program. Whereas, I experienced it is able execute this command in normal cmd but not my batches file.
I have restart the batches, i guess the env variable refresh. Who's know what's the cause?
Comment