Dear Sir,
i am trying execute java batch programs.
program successfully compiled using netbeans ide.
but i am trying to run that through command line
this is my classpath:
set classLogPath=D:\Apps\AttendanceBatch\CGS_Attendanc e\logs\
set batchJarPath=D:\Apps\AttendanceBatch\CGS_Attendanc e\jarFiles\
set classpath=%batchJarPath%mysql-connector-java-5.0.8-bin.jar;.;%batchJarPath%CGSBatch.jar;
java -cp %classpath% com.ets.to.batch.attendance.main.ProcessAttendance Main>>%classLogPath%processAttendance.log;
Command line through the error:
D:\Apps\AttendanceBatch\CGS_Attendance>Processatte ndance.bat
D:\Apps\AttendanceBatch\CGS_Attendance>set classLogPath=D:\Apps\AttendanceBatch\
CGS_Attendance\logs\
D:\Apps\AttendanceBatch\CGS_Attendance>set batchJarPath=D:\Apps\AttendanceBatch\
CGS_Attendance\jarFiles\
D:\Apps\AttendanceBatch\CGS_Attendance>set classpath=D:\Apps\AttendanceBatch\CGS
_Attendance\jarFiles\mysql-connector-java-5.0.8-bin.jar;.;D:\Apps\AttendanceBatc
h\CGS_Attendance\jarFiles\CGSBatch.jar;
D:\Apps\AttendanceBatch\CGS_Attendance>java -cp D:\Apps\AttendanceBatch\CGS_Atte
ndance\jarFiles\mysql-connector-java-5.0.8-bin.jar;.;D:\Apps\AttendanceBatch\CGS
_Attendance\jarFiles\CGSBatch.jar; com.ets.to.batch.attendance.main.ProcessAtten
danceMain; 1>>D:\Apps\AttendanceBatch\CGS_Attendance\logs\pro cessAttendance.log
Error: Could not find or load main class com.ets.to.batch.attendance.main.Proces
sAttendanceMain;
D:\Apps\AttendanceBatch\CGS_Attendance>
How to fix it please help.
i have set both java classpath and path.
my java version is jdk1.7.