Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Jar returns value to VBA

mycoffeeFeb 9 2011 — edited Feb 10 2011
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 10 2011
Added on Feb 9 2011
5 comments
573 views