This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes strange error while compiling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "strange error while compiling" Watch "strange error while compiling" New topic
Author

strange error while compiling

Moieen Khatri
Ranch Hand

Joined: Nov 27, 2007
Posts: 144
Hi,

When I try to compile TestCalenderClass.java, code below,I get the following errors:

import java.util.*;

class TestCalenderClass {
public static void main(String[] args)
{
Calender calender = Calender.getInstance();

System.out.println(calender);

}
}

Error:

E:\A>javac TestCalenderClass.java
TestCalenderClass.java:5: cannot find symbol
symbol : class Calender
location: class TestCalenderClass
Calender calender = Calender.getInstance();
^
TestCalenderClass.java:5: cannot find symbol
symbol : variable Calender
location: class TestCalenderClass
Calender calender = Calender.getInstance();
^
2 errors

I think the class Calender.java is not found while compilation.

Please can someone help?

Thanks in advance
Moieen Khatri
Ranch Hand

Joined: Nov 27, 2007
Posts: 144
Hi,

I found that I was using wrong spelling for Calendar.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: strange error while compiling
 
Similar Threads
J2EE newbie; Tomcat Installation Problems: First Servlet
Do anyone got these errors whiel compiling the code in page 148-149 in head First java??
my inverted index not successfull
Intelligent Agents
Downcasting And Upcasting