기술지원 문의

[질문] calendar 패키지를 찾지못합니다. 어떻게 해야하져
정연호 / 2003-07-02 00:00

데비안 리눅스 환경이구여.
다음과 같은 클래스를 찾지 못합니다.
답변좀 부탁드리겠습니다.


500 Servlet Exception
/usr/local/resin219/webapps/hpcustomer/front/customer/runcdaily.jsp:106:
No method matching getTimeInMillis() found in class java.util.Calendar.
cdailybean.setStime (new Timestamp(c.getTimeInMillis()));
                                                                                                
/usr/local/resin219/webapps/hpcustomer/front/customer/runcdaily.jsp:110:
No method matching getTimeInMillis() found in class java.util.Calendar.
cdailybean.setEtime (new Timestamp(c.getTimeInMillis()));
                                                                                                 
Note: /usr/local/resin219/webapps/hpcustomer/WEB-INF/work/_front/_customer/_runcdaily__jsp.java
uses or overrides a deprecated API.  Recompile with \"-deprecation\" for
details.
2 errors, 1 warning



--------------------------------------------------------------------------------
Resin 2.1.9 (built Tue Apr 15 14:28:40 PDT 2003) 

Re:[질문] calendar 패키지를 찾지못합니다. 어떻게 해야하져
관리자 / 2003-07-02 00:00

자료를 찾아보니 java.util.Calendar class의
getTimeInMillis()이 아주 재미있네요.

jdk 1.3에서 protected method이고
jdk 1.4에서는public 으로 바뀌었어요.

아마도 JDK1.3을 사용하려면 Calendar class를
상속해서 새롭게 class를 만들어서 그놈을 이용하시던가
System.currentTimeMillis()를 이용해보는게
어떨까 합니다.
아니면 JDK를 1.4로 올려보는 것도 좋을 것 같고.....

--정연호 님의 글 [2003-07-02 09:16:56]
>데비안 리눅스 환경이구여.
다음과 같은 클래스를 찾지 못합니다.
답변좀 부탁드리겠습니다.


500 Servlet Exception
/usr/local/resin219/webapps/hpcustomer/front/customer/runcdaily.jsp:106:
No method matching getTimeInMillis() found in class java.util.Calendar.
cdailybean.setStime (new Timestamp(c.getTimeInMillis()));
                                                                                                
/usr/local/resin219/webapps/hpcustomer/front/customer/runcdaily.jsp:110:
No method matching getTimeInMillis() found in class java.util.Calendar.
cdailybean.setEtime (new Timestamp(c.getTimeInMillis()));
                                                                                                 
Note: /usr/local/resin219/webapps/hpcustomer/WEB-INF/work/_front/_customer/_runcdaily__jsp.java
uses or overrides a deprecated API.  Recompile with \"-deprecation\" for
details.
2 errors, 1 warning



--------------------------------------------------------------------------------
Resin 2.1.9 (built Tue Apr 15 14:28:40 PDT 2003)