Home > OS >  Through. Bat file is not automatically shut down after running a JAVA program running under a?
Through. Bat file is not automatically shut down after running a JAVA program running under a?

Time:10-05

Here is run. The content of the bat:
 @ echo off 
SET the JDK_PATH=C: \ Program Files \ Java \ jdk1.6.0 _43 \ bin \
The SET CUCOST_PATH=E: \ OnLineService \ cucost
SET PROJECT_CT_PATH CUCOST_PATH=% % \ ChangeTable
SET PROJECT_ETL_PATH CUCOST_PATH=% % \ cu_cost_etl
SET the PATH=% JDK_PATH %; % % PATH
The SET LIB_PATH CUCOST_PATH=% % \ lib \
SET the CLASSPATH LIB_PATH=% % \ antlr - 4.0 - complete. Jar; LIB_PATH % % \ Commons beanutils - 1.8.3. Jar; LIB_PATH % % \ Commons - collections - 3.2.1. Jar; LIB_PATH % % \ Commons - logging - 1.1.1. Jar; LIB_PATH % % \ log4j - 1.2.17. Jar; LIB_PATH % % \ ojdbc14. Jar; LIB_PATH % % \ openjpa - all - 2.2.1. Jar; LIB_PATH % % \ quartz - all - 2.1.6. Jar; PROJECT_CT_PATH % % \ bin; PROJECT_ETL_PATH % % \ build \ classes; The CLASSPATH % %
CD E: \ OnLineService \ cucost \ ChangeTable \ bin
@ echo===========================the COMPILE START==========================
Java ChangeTable % 1 E: \ \ OnLineService \ \ cucost \ \ cu_cost_etl \ \ build \ \ classes \ \ meta-inf \ \ orm XML
CD E: \ OnLineService \ cucost \ cu_cost_etl \ build \ classes
Java - Xms4096m - Xmx4096m - XX: PermSize=1024 m - XX: MaxNewSize=1024 m - XX: MaxPermSize=1536 m cn.com.chinaunicom.cost.etl.loader.JobRunner % 1% 2% 3% 4
@ echo===========================the COMPILE END============================
The exit

I need to pass the test. The bat to invoke the run. Bat to realize serial operation, the following is the code:
 @ echo off 
Call E: \ OnLineService \ cucost2 \ run bat 30163, 2017-07
Echo * * * * * * * * * * * * * * * * * * * * * * next * * * * * * * * * * * * * * * * * * * * * *
Call E: \ OnLineService \ cucost2 \ run bat 30163 2017-08
Echo * * * * * * * * * * * * * * * * * * * * * * over * * * * * * * * * * * * * * * * * * * * * *
Pause

But the first run. Bat after the operation, stop in a ERROR interface, this ERROR can be ignored, how do I solve?
Thank you for the great god,

CodePudding user response:

His study for a long time, is not a JAVA developer, is just a maintenance personnel, no idea, please refers to the way ah,,,

CodePudding user response:

Prompt ERROR, and which command is generated, there is no way to handle let it continue?
If you don't mind the previous program run results or status and continue to the next, with the start command before running a program.
  • Related