### Run a Jar File

To run a Jar file, use jShell Library.
Example running roColorZ.jar
`Sub mnuShellRunJar_Action
Dim shl As Shell
Try
shl.Initialize("shl", "java.exe" , Array As String("-jar", "rocolorz.jar"))
shl.WorkingDirectory = File.DirApp
shl.Run(-1)
Catch
Log(LastException.Message)
End Try
End Sub`
`Sub shl_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String)
If Success Then
Log(StdOut)
End If
End Sub`

Changed: 2018-05-21 17:35, Category: Shell, File: T6C248M1788.htm, ID: 1788