### Updating Jar Archive

Example of updating a Java Archive using jShell
`Sub Process_Globals
Private sh As Shell
...
End Sub`
`Sub UpdateJar
Try
Dim args As List
args.Initialize
args.Add("-uvf")
args.Add("myjar.jar")
args.Add("filetoadd.txt")
sh.Initialize("sh", """c:\Program Files (x86)\Java\jdk8\bin\jar.exe""", args)
sh.WorkingDirectory = File.DirApp
sh.Run(-1)
Catch
Log(LastException.Message)
End Try
End Sub`
`Sub sh_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String)
If Success And ExitCode = 0 Then
Log("Success")
Else
Log("Error: " & StdErr)
End If
ExitApplication
End Sub`

Changed: , Category: Shell, File: T6C248M1794.htm, ID: 1794