I have solved all the previous problems. Now I'm back to square one again. i am trying to create a calendar in my
Tomcat Engine using Eclipse
IDE. Yesterday everything was dandy. Bujt suddnely they are not working The error i get during compliation is :-
E:\eclipse\workspace\Test1\work\org\apache\jsp\Auct_jsp.java:10: cannot resolve symbol
symbol : class Calendar
location: class org.apache.jsp.Auct_jsp
Calendar cal = Calendar.getInstance();
^
E:\eclipse\workspace\Test1\work\org\apache\jsp\Auct_jsp.java:10: cannot resolve symbol
symbol : variable Calendar
location: class org.apache.jsp.Auct_jsp
Calendar cal = Calendar.getInstance();
^
E:\eclipse\workspace\Test1\work\org\apache\jsp\Auct_jsp.java:11: cannot resolve symbol
symbol : class DateFormatSymbols
location: class org.apache.jsp.Auct_jsp
String[] monthNames = (new DateFormatSymbols()).getMonths();
^
E:\eclipse\workspace\Test1\work\org\apache\jsp\Auct_jsp.java:49: cannot resolve symbol
symbol : variable Calendar
location: class org.apache.jsp.Auct_jsp
out.print(monthNames[cal.get(Calendar.MONTH)]);
^
4 errors
So the compiler is not able to understand the Calendar Interface.
? But HelloWorld is working fine. Please someone help. It will be annoying to see one person putting so many questions but I'm really desperate please help.
Kumar