Thursday, July 21, 2011

How to Create .bat file in java







@Title OBDMonitorDishnet [ %date% %time% ]

@set path=%path%;C:\Program Files\Java\jdk1.6.0_19;

@set classpath=%classpath%;C:\filename.jar;D:\filename.jar;E:\filename.jar;F:\filename.jar;

java -Duser.timezone="Asia/Calcutta" -Xmx1024M  [Your Class Name ] [C://filename.properties]

pause


#Step-1 : Provide Title as your wish eg: your application name. you can provide date and time also .
#Step-2 : set java path
#Step-3 : Here we will Store all our libaries under classpath
#Step-4 : This is final Step repalce [Your Class Name eg: DasariClass ] with your Application Class Name
#Step-5 : Save this Text as filename.bat and run ...enjoy
#Note: [c://filename.properties] u can pass your properties at command line level.














No comments:

Post a Comment