1 Reply Latest reply: May 1, 2008 7:13 AM by 843844 RSS

    Required package for import ???

    843844
      Hello I am trying for web application.I got some problem in my servlet code.
      Microsoft Windows XP [Version 5.1.2600]
      (C) Copyright 1985-2001 Microsoft Corp.
      
      C:\Documents and Settings\shobhitsingh>cd\
      
      C:\>cd hibernatet*
      
      C:\hibernateTutorial>ant war
      Buildfile: build.xml
      
      clean:
         [delete] Deleting directory C:\hibernateTutorial\bin
          [mkdir] Created dir: C:\hibernateTutorial\bin
      
      copy-resources:
           [copy] Warning: events\Event.class modified in the future.
           [copy] Warning: events\Event.hbm.xml modified in the future.
           [copy] Warning: events\Person.hbm.xml modified in the future.
           [copy] Warning: hibernate.cfg.xml modified in the future.
           [copy] Warning: log4j.properties modified in the future.
           [copy] Warning:  modified in the future.
           [copy] Warning: events modified in the future.
           [copy] Warning: util modified in the future.
           [copy] Copying 5 files to C:\hibernateTutorial\bin
           [copy] Copied 2 empty directories to 1 empty directory under C:\hibernateTu
      torial\bin
      
      compile:
          [javac] Warning: events\Event.class modified in the future.
          [javac] Warning: events\Event.hbm.xml modified in the future.
          [javac] Warning: events\Event.java modified in the future.
          [javac] Warning: events\EventManager.java modified in the future.
          [javac] Warning: events\EventManagerServlet.java modified in the future.
          [javac] Warning: events\Person.hbm.xml modified in the future.
          [javac] Warning: events\Person.java modified in the future.
          [javac] Warning: hibernate.cfg.xml modified in the future.
          [javac] Warning: log4j.properties modified in the future.
          [javac] Warning: util\HibernateUtil.java modified in the future.
          [javac] Compiling 5 source files to C:\hibernateTutorial\bin
          [javac] C:\hibernateTutorial\src\events\EventManagerServlet.java:60: cannot
      find symbol
          [javac] symbol  : class SimpleDateFormat
          [javac] location: class events.EventManagerServlet
          [javac] private void listEvents(PrintWriter out, SimpleDateFormat dateFormat
      ter) {
          [javac]                                          ^
          [javac] C:\hibernateTutorial\src\events\EventManagerServlet.java:15: cannot
      find symbol
          [javac] symbol  : class SimpleDateFormat
          [javac] location: class events.EventManagerServlet
          [javac] SimpleDateFormat dateFormatter = new SimpleDateFormat("dd.MM.yyyy");
      
          [javac] ^
          [javac] C:\hibernateTutorial\src\events\EventManagerServlet.java:15: cannot
      find symbol
          [javac] symbol  : class SimpleDateFormat
          [javac] location: class events.EventManagerServlet
          [javac] SimpleDateFormat dateFormatter = new SimpleDateFormat("dd.MM.yyyy");
      
          [javac]                                      ^
          [javac] Note: Some input files use unchecked or unsafe operations.
          [javac] Note: Recompile with -Xlint:unchecked for details.
          [javac] 3 errors
      
      BUILD FAILED
      C:\hibernateTutorial\build.xml:21: Compile failed; see the compiler error output
       for details.
      
      Total time: 8 seconds
      C:\hibernateTutorial>
      pl suggest anybody.

      -Shobhit