Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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")

  • Moderators
Posted

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

Visit...Bassic Software

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...