• Post Reply Bookmark Topic Watch Topic
  • New Topic

Cannot use one bean in another  RSS feed

 
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi GUys

I have two JavaBeans in the same package, when I try and use one bean in the other the compile spits out 'cannot find symbol' errors. Do I need to import the bean or something ? :S
 
Ranch Hand
Posts: 210
Ruby Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You probably need to define your classpath correctly when compiling
 
Ranch Hand
Posts: 1374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If both beans are in the same package than it's not required to import. Can you put a snap of your code the way you access?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!