RE: A simple java question

From: Tolga Evren (tolgae_at_paro.com.tr)
Date: 11/24/05

  • Next message: Bob Smith: "RE: A simple java question"
    Date: Thu, 24 Nov 2005 17:05:52 +0200
    To: "General Red Hat Linux discussion list" <redhat-list@redhat.com>
    
    

    Look ar java.sun.com , try search

    Java.lang.*

    Tol

    -----Original Message-----
    From: redhat-list-bounces@redhat.com
    [mailto:redhat-list-bounces@redhat.com] On Behalf Of Padiyath
    Sreekumaran
    Sent: Thursday, November 24, 2005 4:59 PM
    To: redhat-list@redhat.com
    Subject: A simple java question

       Hello,
       This is not a Java mailing list. Since many of the linux experts and
    java
    experts
       read this mailing list I am sending my simple java question. Iam new
    to
    this
       Java language. Iam having these lines in my Java code which gives me
    error.

       Part of the code is:
    -----------------------------------------------

     import java.util.*;

     class ClockTalk {
             public static void main(String[] arguments) {
             GregorianCalendar now = new GregorianCalendar();
             int hour = now.get(Calendar.HOUROFDAY);
     }
    }

       When I compile this Java code I get the following error:

     % javac ClockTalk.java
        
    ClockTalk.java:6: cannot resolve symbol
    symbol : variable HOUROFDAY
    location: class java.util.Calendar
             int hour = now.get(Calendar.HOUROFDAY);
                                        ^
    1 error

      My java version is java version "1.4.2_08". Iam running this Linux
    RedHat
    V3 OS.
      Which library Iam missing? How can I solve this problem?

       Regards,
       Kumar
    ------------------------------------------------------------------
    Padiyath Sreekumar | Tel: +41.56.310.3643
    Paul Scherrer Institut | email: kumar.padiyath@psi.ch
    AIT | Office: WHGA/U132
    WHGA/U132 | Fax: +41.56.310.3649
    CH-5232 Villigen PSI |
    Switzerland |
    -----------------------------------------------------------------

    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Bob Smith: "RE: A simple java question"

    Relevant Pages

    • A simple java question
      ... This is not a Java mailing list. ... Since many of the linux experts and java ... Iam having these lines in my Java code which gives me ... ClockTalk.java:6: cannot resolve symbol ...
      (RedHat)
    • Re: Can Java Programmer Learn C++ Quickly?
      ... > I realize that this is not entirely a Java question but I am hoping that ... > some of the people reading this newsgroup are Java programmers who went on ... you can kill the null terminator and have string functions wander off ... Also, C style string ...
      (comp.lang.java.programmer)
    • Re: who can give a simple example? Urgently need!!
      ... This isn't even remotely a Java question. ... Google for 'cgiemail'. ... Don't reinvent wheels," to "This isn't even remotely a Java question." ... running Unix. ...
      (comp.lang.java.programmer)
    • Re: who can give a simple example? Urgently need!!
      ... This isn't even remotely a Java question. ... Can you see in your crystal ball that the poster is not using JSP? ... How did you get from "cgiemail ... ... Don't reinvent wheels," to "This isn't even remotely a Java question." ...
      (comp.lang.java.programmer)
    • Re: Can Java Programmer Learn C++ Quickly?
      ... >I realize that this is not entirely a Java question but I am hoping that ... >some of the people reading this newsgroup are Java programmers who went on ... >fluent enough that I don't have to post questions here very often. ... be able to sketch out the system design and bang out the code without ...
      (comp.lang.java.programmer)