473,396 Members | 2,098 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 CalendarWidgetEvent.java with this code:
Expand|Select|Wrap|Line Numbers
  1. package oracle.forms.demos;
  2.  
  3. import java.util.Date;
  4.  
  5. public class CalendarWidgetEvent
  6.        extends java.util.EventObject
  7. {
  8.   private Date date;
  9.  
  10.   public CalendarWidgetEvent(Object s, Date d)
  11.   {
  12.     super(s);
  13.     date = d;
  14.   }
  15.  
  16.   public String toString()
  17.   {
  18.     return date.toString();
  19.   }
  20.  
  21.   public Date getDate()
  22.   {
  23.     return date;
  24.   }
  25. }
This file has compiled without error in the directory classes.

The second File is CalendarWidgetListener.java
Expand|Select|Wrap|Line Numbers
  1. package oracle.forms.demos;
  2.  
  3. public interface CalendarWidgetListener
  4. {
  5.   public void CalendarWidgetDateChanged(CalendarWidgetEvent cwe);
  6. }
When I compile this error is displayed:

CalendarWidgetListener.java:7: cannot resolve symbol
Symbol: CalendarWidgetEvent
location: Interface oracle.forms.demos.CalendarWidgetListener
public void CalendarWidgetDateChanged(CalendarWidgetEvent cwe);


Can someone help me ?

Thank You and Best Regards
Nov 12 '07 #1
3 1856
JosAH
11,448 Expert 8TB
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
Nov 12 '07 #2
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.particurarly to the first two files.

Moreover. Oracle supplies this package with source as template.

Bye
Nov 12 '07 #3
r035198x
13,262 8TB
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.particurarly 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 CalendarWidgetEvent class is not being found. Make sure your classpath is correct when compiling the CalendarWidgetListener file.
Nov 13 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Jagdeesh | last post by:
Hai Colleagues, I am using Tomcat 4.1.24 and JDK 1.4.0_03 in my winXP machine. I've transferred a set of folders(containing jsp files) into tomcat's webapps directory(to /webapps/bob ,...
1
by: Dan | last post by:
I wnat to see in browser an status from an device connected on rs232 port The java class for read from serial port is: //Serial.java import java.io.*; import java.util.*; import...
29
by: Maurice LING | last post by:
Hi, I remembered reading a MSc thesis about compiling Perl to Java bytecodes (as in java class files). At least, it seems that someone had compiled scheme to java class files quite successfully....
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
12
kirara
by: kirara | last post by:
Hello, I am new to rmi and linux enviroment, I have been trying to test this code (java) on uinx where there are three machines: -One as a Controller -an execution host - a submitter I...
3
eyeofsoul
by: eyeofsoul | last post by:
hello..i am really new to java..i am using netbean 4.1.i also install netbean 5. the problem is i got this error when compiling my CopyFile.java..the error said "java.lang.NoClassDefFoundError:...
13
by: goblert | last post by:
hey guys i had a java class file that i no longer have the source file for. i reversed it back to the source using DJ JAVA Decompiler as i had to edit some of the source. How ever when i try to...
10
by: giantfatiguana | last post by:
hey all im a beginner java user and am getting an error relating to the classpath i assume. I have a file JM550b.java which is trying to access the class QTCycle when compiling. QTCycle.java...
4
by: betalpha | last post by:
I'm having trouble compiling my program in Unix. I initially developed it on Windows in Eclipse. I have two files: Tokenizer.java and TokenizerMain.java. They are both in a directory called...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.