Error compiling a Java File

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nick048
    New Member
    • Nov 2007
    • 2

    Error compiling a Java File

    Hi to All,

    In order to create a Date Picker that I need to use in Oracle forms, I have modified some element in the source of original calendarPJC provided from Oracle.

    Following the instruction I have compiled in the correct order the Java file.

    The first is CalendarWidgetE vent.java with this code:
    Code:
    package oracle.forms.demos;
    
    import java.util.Date;
    
    public class CalendarWidgetEvent
           extends java.util.EventObject
    {
      private Date date;
    
      public CalendarWidgetEvent(Object s, Date d)
      {
        super(s);
        date = d;
      }
    
      public String toString()
      {
        return date.toString();
      }
    
      public Date getDate()
      {
        return date;
      }
    }
    This file has compiled without error in the directory classes.

    The second File is CalendarWidgetL istener.java
    Code:
    package oracle.forms.demos;
    
    public interface CalendarWidgetListener
    {
      public void CalendarWidgetDateChanged(CalendarWidgetEvent cwe);
    }
    When I compile this error is displayed:

    CalendarWidgetL istener.java:7: cannot resolve symbol
    Symbol: CalendarWidgetE vent
    location: Interface oracle.forms.de mos.CalendarWid getListener
    public void CalendarWidgetD ateChanged(Cale ndarWidgetEvent cwe);


    Can someone help me ?

    Thank You and Best Regards
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by Nick048
    Hi to All,

    In order to create a Date Picker that I need to use in Oracle forms, I have modified some element in the source of original calendarPJC provided from Oracle.

    [ ... ]

    Can someone help me ?

    Thank You and Best Regards
    Yes; don't do that: "if it ain't broke don't fix it" is a very wise saying. Also from a
    maintenance perspective modifying original vendor code is not the way to go.

    kind regards,

    Jos

    Comment

    • Nick048
      New Member
      • Nov 2007
      • 2

      #3
      Originally posted by JosAH
      Yes; don't do that: "if it ain't broke don't fix it" is a very wise saying. Also from a
      maintenance perspective modifying original vendor code is not the way to go.

      kind regards,

      Jos
      Hi,

      The modifications regard only the words used in the Array; for example:

      The name "Monday" is translated in "Lunedi" etc.
      The DayOfTheWeek "M" (Monday) is translated in "L" etc..

      No modification to source code.particurar ly to the first two files.

      Moreover. Oracle supplies this package with source as template.

      Bye

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by Nick048
        Hi,

        The modifications regard only the words used in the Array; for example:

        The name "Monday" is translated in "Lunedi" etc.
        The DayOfTheWeek "M" (Monday) is translated in "L" etc..

        No modification to source code.particurar ly to the first two files.

        Moreover. Oracle supplies this package with source as template.

        Bye
        Modifying the values in the array is modifying the source code.
        Are you sure your directory structure is correct? It seems that the CalendarWidgetE vent class is not being found. Make sure your classpath is correct when compiling the CalendarWidgetL istener file.

        Comment

        Working...