Domino Code Fragment
Code Name* setEnvironmentVar method | Date* 04/28/2024 | Source (or email address if you prefer)* Rlatulippe@romac.com IP address:.3.141.152.173 | |
Description* 1. This script sets the value of the $HomeTown environment variable to "Tokyo." | Type* Java | Categories* (Misc) |
Implementation: | Required Client: | Server: |
Limitations: | Comments: |
class setenvvar extends NotesThread
{
public static void main(String argv[])
{
setenvvar t = new setenvvar();
t.start();
}
public void runNotes()
{
try
{
Session s = Session.newInstance();
s.setEnvironmentVar("HomeTown", "Tokyo", false);
}
catch (Exception e)
{
e.printStackTrace();
}
}
}