| Author |
Problem when trying to instanciate a Bean ->
|
Dominic Steng�rd
Ranch Hand
Joined: Feb 05, 2001
Posts: 186
|
|
Hi all freaky coders out there! I am trying to instanciate a Bean with the following code: DbConnection dbConn = new DbConnection(); Both the Bean I'm calling from and the one I'm trying to instatnciate are in the same package, and still I get the following error message: cannot resolve symbol symbol: class DbConnection location: class test_beans.Member DbConnection dbConn = new DbConnection ��������������� �����������^ I just can't figure out where the problem is, I have tried everything and checked the code over and over... please help me out. Thanks in advance. Regards ------------------ Dominic Steng�rd Sun Certified Java 2 Programmer ------------------ [This message has been edited by Dominic Steng�rd (edited April 18, 2001).]
|
Dominic Steng�rd<br />Sun Certified Java 2 Programmer
|
 |
Mike Curwen
Ranch Hand
Joined: Feb 20, 2001
Posts: 3695
|
|
What's a DbConnection? I can't find it anywhere in the API. Try just Connection.
|
 |
Dominic Steng�rd
Ranch Hand
Joined: Feb 05, 2001
Posts: 186
|
|
|
DbConnection is my homebuilt bean and it should be just like instanciating any class.
|
 |
Cindy Glass
"The Hood"
Sheriff
Joined: Sep 29, 2000
Posts: 8521
|
|
|
Well it is looking for a symbol, not a class, so it sounds like the line above the one that you showed us is in error. Perhaps some more complete code would help?
|
"JavaRanch, where the deer and the Certified play" - David O'Meara
|
 |
Pho Tek
Ranch Hand
Joined: Nov 05, 2000
Posts: 757
|
|
Does your bean have a public or protected no-arg constructor ? Pho
|
Regards,
Pho
|
 |
 |
|
|
subject: Problem when trying to instanciate a Bean ->
|
|
|