I'm using 1.3.1 .... "RUTHERFURD, Michael" wrote:
> System.setProperty came in in 1.2. What version are you using? > > -----Original Message----- > From: Balasubramaniyan K [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 28 August 2002 13:11 > To: [EMAIL PROTECTED] > Subject: Re: setProperty problem > > 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")); > } > } > > 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----- > 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 problem > > Hi everybody: > > I'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 > > ___________________________________________________________________________ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
