This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "error" Watch "error" New topic


Andrew Lit
Ranch Hand

Joined: Jul 01, 2002
Posts: 135
while compiling my code i get such errors:
Class java.util.Calendar is abstract;cannot be instantiated at line *;
Constructor Calendar() has protected access in class java.util.Calendar at line *;
and that line is:
Calendar cal = new Calendar();
what could be the solution of this problem.

Joined: Jul 03, 2002
Posts: 2
You might need to use a "concrete subclass of Calendar", GregorianCalendar, see the following link for more info:
Andrew Lit
Ranch Hand

Joined: Jul 01, 2002
Posts: 135
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: error
It's not a secret anymore!