Hi
When I executed the
following code segment, I got the required result?
public
class testingSetProperty {
public static void main (String args[]) {
System.setProperty("mail.host", "mail.xyz.com");
System.out.println("The value for mail.host = " +
System.getProperty("mail.host"));
}
}
public static void main (String args[]) {
System.setProperty("mail.host", "mail.xyz.com");
System.out.println("The value for mail.host = " +
System.getProperty("mail.host"));
}
}
Obtained Result:
The
value for mail.host = mail.xyz.com
Can
you please be more specific on what are you trying to do and thereby getting the
"Method not found exception".
Thanks & Regards
Balasubramaniyan Krithivasan
-----Original Message-----Hi everybody:
From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Jose Manuel Valencia
Sent: Wednesday, August 28, 2002 7:19 AM
To: [EMAIL PROTECTED]
Subject: setProperty problemI'm trying to set a system property with:
System.setProperty("mail.host", "mail.xyz.com");
But I get the next error:
"Method setProperty(java.lang.String, java.lang.String) not found in class java.lang.System."
And setProperty(String key, String value) method is in the Class System documentation. What's wrong?
Thanks in advance