• 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:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!