Domino Code Fragment
Code Name* getEnvironmentString method | Date* 04/28/2024 | Source (or email address if you prefer)* Rlatulippe@romac.com IP address:.18.118.120.109 | |
Description* 1. This example gets the value of the $EnvLoc environment variable. | Type* Java | Categories* (Misc) |
Implementation: | Required Client: | Server: |
Limitations: | Comments: |
class getenvstring extends NotesThread
{
public static void main(String argv[])
{
getenvstring t = new getenvstring();
t.start();
}
public void runNotes()
{
try
{
Session s = Session.newInstance();
String envloc = s.getEnvironmentString("EnvLoc", false);
if (envloc == null)
System.out.println("No $EnvLoc");
else
System.out.println("$EnvLoc = " + envloc);
}
catch (Exception e)
{
e.printStackTrace();
}
}
}