Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling java app with vba - Java Virtual Machine Launcher error

Status
Not open for further replies.

Emblem1

Technical User
Jan 11, 2007
77
US
I am attempting to call a java application in Access2007 vba via a button on a form, but getting a "Java Virtual Machine Launcher" error. The code works for most any other application, so I assume I need a different routine to call the java application.

Here is the code:

Private Sub cmdMyButton_Click()
Dim f As String
f = "C:\Program Files\folder1\folder2\javaapp.exe"
Dim RetVal
RetVal = Shell(f, 1)
End Sub
 
There is actually a .jar file in the same directory as the .exe file, so I think I should just be able to call the .jar file somehow....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top