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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

issues starting java jar file with in VB .NET

Status
Not open for further replies.

Shift838

IS-IT--Management
Jan 27, 2003
987
US
I am attempting to start java with arguments calling a jar file and other switches. the java pops up for just a millisecond but I don't know what its doing or not doing.

The code I am using is:

Code:
If chksbridge.Checked = True Then
            Dim TIITProcess As New ProcessStartInfo
            TIITProcess.FileName = "java"
            TIITProcess.Arguments = "-jar tiimagetool.jar BRIDGE " & cmbsbridge.SelectedText.ToString & "10000"
            TIITProcess.WorkingDirectory = "c:\tiimagetool"
            Process.Start(TIITProcess)

End If

I a combo box that reports back the communication port selected.

not sure I have the argument format right.

I do know that the below from a command prompt works fine:

'java -jar tiimagetool.jar BRIDGE COM1 10000'
 
guess I should have worked on it for a few minutes longer.

I figured it out. it was syntax..

Code:
If chksbridge.Checked = True Then
            Dim TIITProcess As New ProcessStartInfo
            TIITProcess.FileName = "java"
            TIITProcess.Arguments = "-jar tiimagetool.jar BRIDGE " & cmbsbridge.SelectedItem.ToString & " 10000"
            TIITProcess.WorkingDirectory = "c:\tiimagetool"
            Process.Start(TIITProcess)
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top