wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
Similar Threads
How to get the system property ?
Java.util.Properties Not Found During loading in Servlet/JSP Erro
Registering for SCJP Exam
Java Mail Problem !!!
dynamically get home directory