Batch program cannot execute JAVA command

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • syminder
    New Member
    • Sep 2010
    • 4

    Batch program cannot execute JAVA command

    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?
  • Dheeraj Joshi
    Recognized Expert Top Contributor
    • Jul 2009
    • 1129

    #2
    Well, Does it gives any error when batch is executed?

    Regards
    Dheeraj Joshi

    Comment

    Working...