.
HCLSoftware Business Partner
Domino Consulting Services
CRUCIAL Notes Tools
+1
212-599-2048
Domino Consulting Services
CRUCIAL Notes Tools
Domino administration
Notes development
Chat now
.
EN - English
CN - 中文
JP - 日本語
DE - Deutsch
FR - Français
BR - Português
RU - Pу́сский
IT - Italiano
IN - हिन्दी
ES - Español
KR - 한국어
ID - Indonesia
NL - Dutch
TR - Türkçe
SA - العربية
SE - Svenska
NO - Norsk
PL - Polski
TH - ไทย
DK - Dansk
MY - Malay
PH - Filipino
GR - Ελληνικά
FI - Suomi
IL - עברית
IE - Gaeilge
CZ - Čeština
UA - Українська
RO - Română
VN - Tiếng Việt
BD - বাংলা
HU - Magyar
Need a Domino Consultant? Call NotesMail +1 212-599-2048
-
HCLSoftware Business Partner
JAVA/CORBA CLASSES
Examples: getEnvironmentString method
1. This application gets the value of the $EnvLoc environment variable.
import lotus.domino.*;
class getenvstring extends NotesThread
{
public static void main(String argv[])
{
getenvstring t = new getenvstring();
t.start();
}
public void runNotes()
{
try
{
Session s = NotesFactory.createSession();
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();
}
}
}
2. This application gets the value of the MailServer system environment variable.
import lotus.domino.*;
class getenvstring2 extends NotesThread
{
public static void main(String argv[])
{
getenvstring2 t = new getenvstring2();
t.start();
}
public void runNotes()
{
try
{
Session s = NotesFactory.createSession();
String ms = s.getEnvironmentString("MailServer",
true);
if (ms == null)
System.out.println("No MailServer");
else
System.out.println("MailServer = " + ms);
}
catch (Exception e)
{
e.printStackTrace();
}
}
}
See Also
getEnvironmentString method
Feedback on
Help
or
Product Usability
?
Help on Help
All Help Contents
Feedback on
Help
or
Usability
?
Help on Help
All Help Contents