aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Getting Compile time error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Getting Compile time error" Watch "Getting Compile time error" New topic
Author

Getting Compile time error

shruti patel
Ranch Hand

Joined: Mar 10, 2008
Posts: 52
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

Joined: Feb 19, 2008
Posts: 2902
    
    1

import java.util.Properties; package .
[ June 25, 2008: Message edited by: Sagar Rohankar ]

[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting Compile time error