yogi21 Posted April 19, 2003 Posted April 19, 2003 hey all i want to start a java application out of my vb programm. i used the code below but it throws an exception. i don't know where the mistake is. can somebody help me? thanx a lot Dim myProcess As New Process() myProcess.Start("C:\j2sdk1.4.0_01\bin\java.exe waveplay") Quote
Moderators Robby Posted April 19, 2003 Moderators Posted April 19, 2003 try this... Dim myProcess As New Process() myProcess = Process.Start("C:\j2sdk1.4.0_01\bin\java.exe waveplay") Quote Visit...Bassic Software
Moderators Robby Posted April 19, 2003 Moderators Posted April 19, 2003 Also, if you want to track the Exit of the process.... Private WithEvents myProcess As New Process() Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load myProcess = Process.Start("C:\j2sdk1.4.0_01\bin\java.exe waveplay") myProcess.EnableRaisingEvents = True End Sub Private Sub myProcess_Exited(ByVal sender As Object, ByVal e As System.EventArgs) Handles myProcess.Exited MessageBox.Show("Thank you") End Sub Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.