to pass a class ref of Demo class conatined in project B and another project suppose-A containing a callback function and parameter as passing object ref of Demo class in A.jar i want to import project A.jar in B.jar but A.jar gives compile time error as callback func def in A project contains Demo ref which is not defined in A project . I dont want circular dependency like importing it in both jar . If you didn't got please reply