Re: help with properties class
- From: divyatiwari123@xxxxxxxxx
- Date: 28 Feb 2007 03:45:54 -0800
<sscce>
import java.util.Properties;
class PropEg
{
public static void main(String arg[])
{
Properties p=new Properties();
p.setProperty("path","C:\\Program Files\\Java\\jdk1.6.0\\bin");
String pvalue = p.getProperty("path");
System.out.println("Property path="+pvalue);
}
}
</sscce>
Hey thanks Andrew. It worked with the escape sequences, but it doesn't
solve my purpose. I wanted to be able to set the class path while
executing the program. Is that possible?
P.S. Can you please explain your code a bit. Am new to this field.
.
- Follow-Ups:
- Re: help with properties class
- From: Chris Uppal
- Re: help with properties class
- References:
- help with properties class
- From: divyatiwari123
- Re: help with properties class
- From: Andrew Thompson
- Re: help with properties class
- From: Andrew Thompson
- help with properties class
- Prev by Date: Re: new to everything
- Next by Date: Re: JUNIT questions
- Previous by thread: Re: help with properties class
- Next by thread: Re: help with properties class
- Index(es):