This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 2904
    
    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]
 
Have you checked out Aspose?
 
subject: Getting Compile time error
 
It's not a secret anymore!