Other than your A.method() signature not ending with a semicolon (another typo?), the architecture you've outlined should work. Try putting A in the same package to see if that makes a difference.
What error message are you getting?
Always learning Java, currently using Eclipse on Fedora.
Linux user#: 501795
ItDoesntWorkIsUseless. Remember that it is important to tell the details. Please tell us the error that you are getting. Otherwise people won't be able to help
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Hi Pravan, I am glad you solved your programming problem. But the moral of this story is PostRealCode. You had at least three differences in your posted code which made solving your problem impossible.