Jar returns value to VBA
I have a small jar that is called from VBA code in MDB file.
Currently, the VBA calls the jar as Shell("java.exe -jar " & jarname ) and the jar is working fine to do most of the work behind the scene
Inside the jar file, the main function in the Main class is declared as void (as it should be) so it doesn't return anything to the VBA
Now, I want the jar to return something(i.e error back to the VBA code so the VBA code can display the message to users)
How can I change the java code to archive it/ or any suggestions
Thank you in advance