I have an existing jar file that contains a class I am execution from a batch file as shown below.
java -classpath %CLASSPATH% com.xxx >> LOG_FILE_name
The class contains lot of System.out and System.err. The System.out is going to the log file mentioned as redirection but the error message is still coming to the console.
How can I redirect System.err to the same log file? I am not in a position to change the code of the classes in the jar file.