'Non-UI application (console / server application)
#Region Project Attributes
#CommandLineArgs:
#MergeLibraries: True
#End Region
#If JAVA
import java.util.*;
public Map<String, String> GetEnvMap() {
return System.getenv();
}
#End If
Sub Process_Globals
Private jo As JavaObject
End Sub
Sub AppStart (Args() As String)
Log("Before")
Private envMap As Map = jo.RunMethod("GetEnvMap", Null)
Log("After")
For Each k As String In envMap.Keys
Log(k+"="+ envMap.Get(k) )
Next
End Sub
'Return true to allow the default exceptions handler to handle the uncaught exception.
Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
Return True
End Sub