• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can't find constructor!

 
Bigwood Liu
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,
I always meet the problem:
cannot resolve symbol
symbol: constructor OriginJCombo ...
I have a class named OriginJCombo:
and a class named ClientMain:

By the way, I used the mediator pattern:

Regards,
Thank you
Damu
[ July 16, 2003: Message edited by: damu liu ]
 
Burk Hufnagel
Ranch Hand
Posts: 814
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does ClientMain inplement ActionListener?
 
Bigwood Liu
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Burk,
Thank you for reply, the ClientMain implements
ActionListener.
Regards,
Damu
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Damu
I cannot see anything obvious with the code you provided.
I recommend you compile with debugging turned on, so that when the exception is thrown you will see the line number that is causing the problem - confirm that is one of the lines shown that is causing the problem.
Regards, Andrew
 
Bigwood Liu
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Andrew,
Thank you!
Regards
Damu
 
Bigwood Liu
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey,
I compiled the files with the -g parameter,
the problem is at ClientMain: can't find constructor!
Can you compile it in your computer? think u
regards
Damu
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Damu
There is not enough code here to try and compile it locally. To give just one example: I have no idea what ClientMain is extending.
Could you please post the complete error message?
Regards, Andrew
 
Bigwood Liu
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey Andrew,
Thank you for reply.
this is ClientMain:

this is OriginJCombo:

this is DataCommand:

this is part of Mediator :

this is error message:

[ July 18, 2003: Message edited by: damu liu ]
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Damu,
Ahhh, the benefits of having an editor which does colour coding.
This entire block is a comment:
Notice that space between the "*" and the "/"?
Regards, Andrew
 
Bigwood Liu
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OOOOOOOOOOOOOOOOOOOOOO my GOD!
Thank you very much Andrew, you are my angel!
It had taken me three days!
BTW, what editor do you use?
Thank you once more!
Best Regards
Damu
[ July 18, 2003: Message edited by: damu liu ]
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Damu
BTW, what editor do you use?

Normally vi
But I had JBuilder open already, so I loaded your code in there.
If I am on a Microsoft platform (very rare), I use UltraEdit.
Regards, Andrew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic