Hello all:
I am trying to put my Maven command in a batch file so I can click on the icon to run it. I created this batch file: mvn exec:exec -Dexec.executable="java" -Dexec.args="-Djava.library.path=C:\OneDrive\Dev\Jacob -cp %%classpath com.fiscalassets.tax.PrintForm1098s application.properties.FiscalAssets" pause The maven command runs fine and creates the desired output, but the pause is not working and the window closes before I can read the screen. If I try putting call before the mvn command: call mvn exec:exec -Dexec.executable="java" -Dexec.args="-Djava.library.path=C:\OneDrive\Dev\Jacob -cp %%classpath com.fiscalassets.tax.PrintForm1098s application.properties.FiscalAssets" pause I get an error: Error: Could not find or load main class com.fiscalassets.tax.PrintForm1098s Caused by: java.lang.ClassNotFoundException: com.fiscalassets.tax.PrintForm1098s but the pause works. Anyone know what is happening here? Thank you, Neil -- Neil Aggarwal, 972-834-1565, http://propfinancing.com We offer 30 year loans on single family houses!