File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting Compile time error

 
shruti patel
Ranch Hand
Posts: 52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
class TestProps
{
public static void main(String[] args)
{
Properties p=System.getProperties();
p.setProperty("myprop","myvalue");
p.list(System.out);
System.out.println("Hello World!");
}
}

when i compile this code getting error as "cannot find Symbol"
with this line
Properties p=System.getProperties();
 
Sagar Rohankar
Ranch Hand
Posts: 2904
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
import java.util.Properties; package .
[ June 25, 2008: Message edited by: Sagar Rohankar ]
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic