• Post Reply Bookmark Topic Watch Topic
  • New Topic

calling boolean method  RSS feed

 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

I have a package package firstpackage with method public static boolean handleResponse(MessageContext msgContext)

Which i need to cal from package seconpackage

But i can't seem to call it. I've imported the package but when i do

firstpackage.handleResonse it dosen't like it

Can someone please help

Many thanks
 
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Gil,

Check your CLASSPATH.

Hope that helps,
 
dale con
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i'm using eclipse and have created 2 packages to keep things from getting messy

All i want to do is call a method in a package

Why do i need to check my classpath

Am i able to call a boolean method?

Do i have to make it static?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!