Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

execute java.class in batch to tun  RSS feed

 
Eung maeng
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to find an answer and example how to run myjava.class in batch.

Actually, I have a batch file(AA.bat) to run myjava.class with classpath.

However, I have to run this job should be run in batch.

Thus, if anyone can show a good example or explan me, it would be good.

thanks,
 
Eung maeng
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Topic: running a java program in batch job
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you looking for a scheduler or soemthing to kick this off every day?
 
Eung maeng
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank for asking. actullay, when I call .bat which is kick off mypgm.class with classpath, always open dos prompt when mypgm.clas running.

if I need to run five times for mypgm.class, 5 dos prompts will be open until completed a job.

in this case, how can running mypgm.class without open each dos prompt as batch job processing.

pleaes give an answer for my question. it would be apprecaited.

thanks,
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!