Hello Guys

Sorry to post again and agian !!!

Its the same like previous post !!

The below example rresembles to HelloWorldWeb (Sample which comes along)

I am given a (MyJar) jar file that contains class files (ie  AddImpl.class
and  AddService.class ) (No source java file)

In that class file i have getResult( int i,int j ) a member  function that
returns the sum of two numbers

Above things are already given !

Now i am writing two files PayCalculateImpl  and PayCalculateService

In that PayCalculateImpl i have a member function : calculatePay( int a,int
b )

Now in calculatePay i have to call getResult( a,b )

I made the call by :
--------------------------------------------------------------------------------------------------+
import org.osoa.sca.annotations.Service;


@Service(PayCalculateService.class)


public class AdditionImplNew implements AdditionServiceNew {

   public int calculatePay(int a,int b) {
       int s=AddImpl.getResult(a,b);
       return s;

   }
}
----------------------------------------------------------------------------------------------------+

The error i get :

cannot find symbol

symbol  : variable AddImpl
location: class Add1.AdditionImplNew

Even i used AddService.getResult(a,b); still i get same symbol not found

How to overcome this problem !!!! What should i do so that Maven will come
to know AddImpl.

I have also set the jar file in Build.xml
as:
<path id="javac.classpath">
       <fileset dir="${mainDir}/samples/sca/Add1/src/main/java/Add1">
           <include name="myjar.jar"/>
       </fileset>
   </path>

// myjar.jar contains the AddImpl.class and AddService.class


Guys plz shed some light on this !!!

Thanx in Advcance !

Regards,
Sam


--

Reply via email to