• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

strange error while compiling  RSS feed

 
Ranch Hand
Posts: 144
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 144
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I found that I was using wrong spelling for Calendar.

 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!