Not able to load java.lang.Calendar class at runtime

Posted on 2006-05-26
Last Modified: 2012-05-05
I'm loading a bunch of classes at runtime using Class.forName() method. When the time comes to load java.lang.Calendar, I'm getting the following error:
java.lang.ClassNotFoundException: java.lang.Calendar

Any idea what's going on?
Question by:salmasri
    LVL 92

    Accepted Solution

    its java.util.Calendar
    LVL 6

    Expert Comment

    java.lang.Calendar should be java.util.Calendar.
    Class.forName() is is depend on which ClassLoader is using at that time.
    Phuoc H. Nguyen

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Which XML parser should I used for my requirement 11 49
    commonTwo  challenge 63 69
    changePi Challenge 15 57
    groovy example issue 10 35
    For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
    Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
    Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
    The viewer will learn how to implement Singleton Design Pattern in Java.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now