File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Getting Compile time error

shruti patel
Ranch Hand

Joined: Mar 10, 2008
Posts: 52
class TestProps
public static void main(String[] args)
Properties p=System.getProperties();
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

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:
subject: Getting Compile time error
It's not a secret anymore!