• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

strange error while compiling

 
Ranch Hand
Posts: 144
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I found that I was using wrong spelling for Calendar.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic