Hello,
Created windows java Executable from log4jc successfully.
On target server, It runs properly if it is executed from the directory where the dependendent lib/jars are exist. However if we runs the same executable from some other directory it fails to execute and errors out with the msg "Error: Could not find or load main class xxxxx".
Tried couple of options like setting the CLASSPATH env variable to the location where jar files exist and tried running the same from different folder and it still throws the same error.
Please note that am executing it from the command line.
Let me know if anything (any variable configuration) to be done while generating the executable for this (xml config file)? or on target server during runtime any possible configuration solve the issue.
Thanks,
Madhu
you want to try these
<mainclass>your.main.class</mainclass>
<precp>%EXEDIR%\somedir*;
%EXEDIR%......\another\dirto\your.jar;
%EXEDIR%....\jdbc\lib\ojdbc8.jar;
...</precp>
you need a reference point so windows knows where you are working from.